From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5d72cb1805b4c6f X-Google-Attributes: gidfee84,public From: Joe Mario Subject: Re: How to build a shared library on DEC alpha 3.2 Date: 1998/08/06 Message-ID: <35C9DBD5.4287@zk3.dec.com>#1/1 X-Deja-AN: 378557453 Content-Transfer-Encoding: 7bit References: <35C98BC3.3EDC8F83@BULL.NET> To: boucheau Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Prior to V4.0, you cannot use the cc driver to build shared libraries. You must call ld directly. For example: ld -shared -no_archive -o my_lib.so a.o b.o c.o -lc As of V4.0, it's preferrable to use the cc driver to build shared libs. Joe Mario boucheau wrote: > > Hi, > I try to build a shared library on DEC alpha V3.2 using the following > commands: > > /bin/cc -c -g GccOptimizedFlags -fpic -Dlint -DPOSIX_SOURCE -DOSF > -Dalpha -DSYSV -DRE_DECLARE_SIGNALS -Dbsd -taso -migrate -assume > noaligned_object -I. -I/vb/source -I/vb/source/include -I/DEC/include > -I/usr/local/include > -I/usr/include/X11 -IIsm_Extra_Osi_Inc_Dir /vb/source/vb_version.c > touch .vb_version~ > /bin/cc -shared -Dbsd -taso -migrate -assume noaligned_object -threads > ...