Re: DSO loading (dlopen) appearse to be broken somehow

From: Andrey Chernov <ache_at_freebsd.org>
Date: Wed, 4 Apr 2007 18:55:03 +0400
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/

Received on Wed Apr 04 2007 - 12:55:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC