DSO loading (dlopen) appearse to be broken somehow

Andrey Chernov ache at freebsd.org
Wed Apr 4 14:55:06 UTC 2007


On Wed, Apr 04, 2007 at 06:51:05PM +0400, Andrey Chernov wrote:
> Comparing generated Makefile with FreeBSD 6 it seems some ld flags 
> are now missing:
> 
> < LDFLAGS_SHLIB_EXPORT=
> ---
> > LDFLAGS_SHLIB_EXPORT=-Wl,-E
> 
> I'll come back with detailed results later.

Found. It is old objformat problem.

            OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || 
echo
aout`
            if [ "x$OBJFORMAT" = "xelf" ]; then
                LDFLAGS_SHLIB_EXPORT="-Wl,-E"
                SHLIB_SUFFIX_DEPTH=0
            else
                LDFLAGS_SHLIB_EXPORT=""
                SHLIB_SUFFIX_DEPTH=2
            fi

Sorry for the noise.


-- 
http://ache.pp.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070404/8d250ef2/attachment.pgp


More information about the freebsd-ports mailing list