This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Option -static
- From: Michael Morrell <morrell at alumni dot ucsd dot edu>
- To: binutils at sourceware dot org
- Date: Mon, 11 Jan 2010 15:14:19 -0800 (PST)
- Subject: Re: Option -static
- Reply-to: morrell at alumni dot ucsd dot edu
FYI. Since ld already supports -a for HP-UX compatibility:
-akeyword
This option is supported for HP/UX compatibility. The keyword
argument must be one of the strings archive, shared, or default.
-aarchive is functionally equivalent to -Bstatic, and the other two
keywords are functionally equivalent to -Bdynamic. This option may
be used any number of times.
You might want to consider enhancing -a as well since HP-UX already has
this functionality:
-a search
The Series 700/800 linker supports two additional
values for the search flag. The value
archive_shared indicates that within each
directory searched to find the library specified
with -l, the archive form is preferred, but the
shared form is allowed. The value shared_archive
states that the shared form is preferred but the
archive form is allowed.
Michael