Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 23:13:10 +1030 (CST)
From:      "Daniel J. O'Connor" <darius@dons.net.au>
To:        Nils M Holm <nmh@dialup.nacamar.de>
Cc:        hackers@freebsd.org
Subject:   RE: Force dynamic linking?
Message-ID:  <XFMail.000120231310.darius@dons.net.au>
In-Reply-To: <Pine.BSF.3.96.1000120113414.4201A-100000@Sunrise.UUCP>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Jan-00 Nils M Holm wrote:
>  Is there any way to force the creation of dynamically linked executables
>  using the ELF linker (like 'ld -Bforcedynamic' in the a.out version)?
>  
>  I have to link against static libs, but I want to use dlopen() etc.

I think you have to link against the libs you need by hand.. (And don't specify
-Bstatic).. eg ->

gcc foo.o bar.o /usr/local/lib/liba.a -o foo

That way you end up with a dynamic executable with no unresolved symbols. (Been
here done this ;)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000120231310.darius>