libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link order of deplibs test (was: FYI: lt_dlexit.at test needs 'libto


From: Peter O'Gorman
Subject: Re: Link order of deplibs test (was: FYI: lt_dlexit.at test needs 'libtool --mode=execute')
Date: Tue, 20 Feb 2007 08:00:41 +0900


On Feb 19, 2007, at 10:50 PM, Peter O'Gorman wrote:


On Feb 19, 2007, at 12:41 AM, Ralf Wildenhues wrote:

Hello Peter,

* Ralf Wildenhues wrote on Wed, Feb 14, 2007 at 12:13:51AM CET:
* Peter O'Gorman wrote on Tue, Feb 13, 2007 at 03:15:19PM CET:
On Feb 13, 2007, at 4:54 AM, Ralf Wildenhues wrote:

This fixes lt_dlexit.at test on some systems (e.g., Darwin), where a main program without uninstalled library dependencies doesn't get a
shell wrapper.

Thanks, was wondering what was up with this. Still unexpectedly
failing two tests on darwin though - 16 and 49. I haven't looked
closely, should I?

I think I'll rewrite link-order2.at (16) to not use libm, that fails
just about everywhere. 49 is just failing on Darwin because it reruns
test 16.  You could look into it if it still fails afterwards.  ;-)

Here's a rewrite of the test.  I think it still fails on Darwin (with
duplicate symbols IIRC; I only tested an earlier version of this) and
AIX without runtimelinking.  Could you look into the issue on Darwin?
(Of course I'd also appreciate a review of the proposed patch. ;-)

Hi Ralf,
It is another Apple object file namespace thing. If you remove the - no-undefined flag for darwin then the test will pass, alternatively, you can add the -Wl,-flat_namespace flag (though I haven't tested this latter, it ought to work).

In my poking about I did:
undefined_setting="-no-undefined"
shared_fails=no
case $host_os,$LDFLAGS in
aix*,*-brtl*) ;;
aix*) shared_fails=yes ;;
darwin*) undefined_setting= ;;
esac
[snip]]
LDFLAGS="$LDFLAGS $undefined_setting -L$deflibdir"

Now that it is a new day, I realize that this also depends on MACOSX_DEPLOYMENT_TARGET, so we'd need to check that the archive_cmds contains -flat_namespace as you did for the other test and skip this one if not.

Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]