Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!ns.mcs.kent.edu!kira.cc.uakron.edu!odin.oar.net!malgudi.oar.net!imci4!newsfeed.internetmci.com!in1.uu.net!alterdial.uu.net!not-for-mail From: jalvarez@uno.com Newsgroups: comp.unix.bsd.freebsd.misc Subject: Building shared libraries on FreeBSD Date: Mon, 12 Feb 96 19:58:03 PDT Lines: 17 Message-ID: <NEWTNews.824184170.11252.jalvarez@sundev.uno.com> NNTP-Posting-Host: pool033.max6.ffx1.va.dynip.alter.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage Are there any special rules to build shared libraries under FreeBSD ? We tried compiling with 'gcc -fPIC' and linking with 'gcc -shared' (of 'g++ shared' for C++ libs) as we do under Linux but we get messages about __DYNAMIC being unresolved. We then tried linking with 'ld -Bshareable' (which might need addional options when using C++ templates) and the unresolved messages went away but the applications behave very different than when using a static build. We are using an old FreeBSD (2.0.5). Could this be part of the problem ? Thanks, --Jesus Alvarez Software UNO