Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2007 18:55:03 +0400
From:      Andrey Chernov <ache@freebsd.org>
To:        Alexander Kabaev <kabaev@gmail.com>, current@freebsd.org, ports@freebsd.org
Subject:   Re: DSO loading (dlopen) appearse to be broken somehow
Message-ID:  <20070404145503.GA41981@nagual.pp.ru>
In-Reply-To: <20070404145105.GA41879@nagual.pp.ru>
References:  <20070404101321.GA37396@nagual.pp.ru> <20070404082346.64ce25cd@kan.dnsalias.net> <20070404125735.GA40094@nagual.pp.ru> <20070404090944.1a13e96f@kan.dnsalias.net> <20070404133529.GA40652@nagual.pp.ru> <20070404145105.GA41879@nagual.pp.ru>

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

[-- Attachment #1 --]
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/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFGE7xHVg5YK5ZEdN0RAuZxAJ0Znqu+6GfXFELBL+g1prID7Eyz2wCfbFJy
wf4XrBzXM87QDuTtbsOsjBE=
=GU6I
-----END PGP SIGNATURE-----
help

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