Subject: Re: [ast-users] How do you compile a static ksh binary?
--------

> Hello,
> 
> I have successfully build ksh93 on a PA-RISC HP-UX 11.00 system with the HP 
> ANSI
>  C compiler. Next I like to compile ksh93 as a static binary. The difference 
> thi
> s time is it fails to link because it cannot find the dld library (naturally).
> 
> I have tried various options without success such as:
> - SHOPT_CMDLIB_DIR == 1
> - SHOPT_DYNAMIC == 0
> 
> The ksh93 README file mentions mam_cc_static but I don't know where this set. 
> In
> cidentally some of the Makefile options are not mentioned in the README; 
> example
>  being SHOPT_CMDLIB_HDR. Has anyone who has done this before give me some 
> pointe
> rs. Thanks.
> 
> I have also searched the ast-users archives and tried googling.
> 
> Regards,
> Steven
> 

The ksh93t will allow you do build a static ksh93 by setting

        SHOPT_DYNAMIC==0
in the nmake makefile or in a Makeargs file or on the command line.


However, if you build a dynamic version of ksh93, then you will
not be able to load built-ins at run time.

David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to