Article View: comp.unix.ultrix
Article #8909Re: Shared libraries
From: Burkhard Neidecker-Lutz
Date: Wed, 29 Jun 1994 14:37
Date: Wed, 29 Jun 1994 14:37
36 lines
1823 bytes
1823 bytes
In article <jerry.772874169@kenya> jerry@tivoli.com (Jerry Frain) writes: >emclean@sfsuvax1.sfsu.edu (Emmett McLean) writes: > >> <lots of bogus stuff deleted> > First, the simple one: On ULTRIX, you can't produce or use shared libraries. End of story. Second, the other simple one: On DEC OSF/1, you don't do anything special with GCC to create shared libraries. Read the section 3 of the Programmers Guide. Basically, you just create a normal library with all the normal flags you're used to. If you later decide that the library is to your liking: libfoo.a Then: ld -shared -no_archive -all libfoo.a -none -lc -o libfoo.so This example assumes that your shared library in turn is dependent only on the C library. If other libraries are needed in turn (say the math library), these go into the section after "-none". Burkhard Neidecker-Lutz Distributed Multimedia Group, CEC Karlsruhe Advanced Technology Group, Digital Equipment Corporation neideck@nestvx.enet.dec.com
Technical Details
Message-ID:
<2us0v2INNjul@usenet.pa.dec.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!ames!decwrl!pa.dec.com!nestvx.enet.dec.com!neideckReferences:
<2ur34f$fc5@news.csus.edu> <jerry.772874169@kenya>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ba33,997b03735e084fc1 X-Google-Attributes: gid10ba33,public X-Google-Thread: fee84,997b03735e084fc1 X-Google-Attributes: gidfee84,public X-Google-Thread: 10b612,997b03735e084fc1 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-06-29 07:41:55 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!ames!decwrl!pa.dec.com!nestvx.enet.dec.com!neideck From: neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz) Newsgroups: comp.unix.ultrix,gnu.g++.help,comp.unix.osf.osf1 Subject: Re: Shared libraries Date: 29 Jun 1994 14:37:22 GMT Organization: CEC Karlsruhe Lines: 36 Message-ID: <2us0v2INNjul@usenet.pa.dec.com> References: <2ur34f$fc5@news.csus.edu> <jerry.772874169@kenya> NNTP-Posting-Host: BIER