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: boucheau Subject: Re: How to build a shared library on DEC alpha 3.2 Date: 1998/08/06 Message-ID: <35C9E3A4.5176E928@BULL.NET>#1/1 X-Deja-AN: 379814226 References: <35C98BC3.3EDC8F83@BULL.NET> <35C9DBD5.4287@zk3.dec.com> Content-Type: multipart/alternative; boundary="------------590A861BC9192B0B4F64CDB0" Organization: ism Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 --------------590A861BC9192B0B4F64CDB0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Joe Mario wrote: > 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 > ... Thank you very much. It works fine and I am very happy. Best regards. Vincent.Boucheau@Bull.net --------------590A861BC9192B0B4F64CDB0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Joe Mario wrote:
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 > ...

 Thank you very much. It works fine and I am very happy.
Best regards.
Vincent.Boucheau@Bull.net
  --------------590A861BC9192B0B4F64CDB0--