From: Joe Mario <mario@zk3.dec.com>
Subject: Re: Linking Statically & Dynamically with GCC
Date: 2000/01/13 [thread overview]
Message-ID: <387E198E.E36968F@zk3.dec.com> (raw)
In-Reply-To: 85d6ah$esg$1@nnrp1.deja.com
swettk@my-deja.com wrote:
> I'm installing software on osf1 v4.0 that requires some libraries to be
> linked statically and others dynamically. On other platforms (SunOS,
> LINUX, and IRIX), I have successfully used the -Wl,-Bstatic and
> -Wl,Bdynamic flags, but these flags are unrecognized on this platform.
>
> I need to know what flags to use on osf1 to achieve the same effect, or
> if I have made some error in linking, if someone would be so kind as to
> give me a clue. :)
The following three flags are the supported equivalents on Tru64 UNIX for
the Bstatic and
Bdynamic flags. This is from the ld manpage.
-no_archive
Require -l references to resolve to shared objects. Normally, if the
shared object as specified by the -l is not found, the linker attempts
to find the corresponding archive to resolve undefined symbols. This
option disallows using those archives. Note that this option is posi-
tional and can be used more than once on a command line. It affects
only those options that follow it, and it is turned off by the next
occurrence of a -no_so or -so_archive option.
-no_so
Require -l references to resolve to archive libraries. Note that this
option is positional and can be used more than once on a command line.
It affects only those options that follow it, and it is turned off by
the next occurrence of a -no_archive or -so_archive option.
-so_archive
Turn off either the -no_archive or -no_so options allowing -l refer-
ences to resolve to either shared objects or archive libraries in
shared or call_shared links.
Joe Mario
next prev parent reply other threads:[~2000-01-13 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-10 5:00 Linking Statically & Dynamically with GCC swettk
2000-01-13 5:00 ` Joe Mario [this message]
2000-01-15 5:00 ` Tim Mooney
2000-01-19 5:00 ` swettk
2000-02-17 5:00 ` swettk
2000-02-17 5:00 ` swettk
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox