From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,670da90686135444 X-Google-Attributes: gidfee84,public From: Joe Mario Subject: Re: Linking Statically & Dynamically with GCC Date: 2000/01/13 Message-ID: <387E198E.E36968F@zk3.dec.com>#1/1 X-Deja-AN: 572198738 Content-Transfer-Encoding: 7bit References: <85d6ah$esg$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 947788199 18779 16.141.0.18 (13 Jan 2000 18:29:59 GMT) Organization: UBPG Mime-Version: 1.0 NNTP-Posting-Date: 13 Jan 2000 18:29:59 GMT Newsgroups: comp.unix.osf.osf1 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