Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 14:46:53 -0700
From:      "Steve Franks" <stevefranks@ieee.org>
To:        "User Questions" <freebsd-questions@freebsd.org>
Subject:   Re: <solved> freebsd equiv of libdl.a (load shared libs)
Message-ID:  <539c60b90803261446h38ee141bjc89f7156c204d58@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
On Wed, Mar 26, 2008 at 2:39 PM, Steve Franks <stevefranks@ieee.org> wrote:
> I am porting a linux app which is looking for libdl.a (which I
>  understand from googling is related to loading of shared libs).  The
>  app makes a libusb-based shared lib.  FreeBSD uses shared libs, so I
>  assume there is equivalent functionality somewhere.  I also see
>  libdl.a in /compat/linux/lib, but I assume if I link a native FreeBSD
>  app against this, fireworks will be the only result.  I further assume
>  since I got no error from gcc, that some freebsd header actally points
>  to the exact functions expected in libdl.a, so they are in there
>  somewhere....
>
>  Steve
>
>  --
>  Steve Franks, KE7BTE
>  Staff Engineer
>  La Palma Devices, LLC
>  http://www.lapalmadevices.com
>  (520) 312-0089
>

Looks like changing -ldl to -lc (libc.a) to the link step in my
makefile did it.  No idea why they weren't picking that up...

Steve


-- 
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089



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