[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HEAD: fix the inherited_linker_flags regression
From: |
Ralf Wildenhues |
Subject: |
Re: HEAD: fix the inherited_linker_flags regression |
Date: |
Thu, 26 Jul 2007 23:00:09 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Charles,
To recamp this older thread: you reported a regression due to my
2007-05-03 patch on Cygwin, failing the inherited_linker_flags test.
* Charles Wilson wrote on Fri, May 11, 2007 at 03:32:35AM CEST:
> Ralf Wildenhues wrote:
>> Interesting. After running the failed test, please post the output of
>>
>> cd tests/testsuite.dir/09
>> ../../../libtool --debug -n --mode=link --tag=CC gcc -framework Cocoa \
>> -framework ApplicationServices -o libbaz.la baz.lo libboth.la \
>> -no-undefined -rpath /usr/local/lib
>
> Attached.
Thanks. Several things are weird here:
1) I cannot reproduce the failure on Cygwin nor MinGW over here.
The test passes with current HEAD.
2) Your log (thanks!) shows this essential difference to a log of mine
on GNU/Linux:
+ tmp_libs=
+ test unknown '!=' no
+ test link = link
+ test lib = prog
-+ compiler_flags=' Cocoa.ltframework ApplicationServices.ltframework'
-+
dependency_libs='/usr/src/libtool/cvs/_build/tests/testsuite.dir/09/libboth.la '
+++ echo 'X Cocoa.ltframework ApplicationServices.ltframework'
+++ /bin/sed -e '1s/^X//' -e 's% \([^ $]*\).ltframework% -framework \1%g'
++ compiler_flags=' -framework Cocoa -framework ApplicationServices'
++ dependency_libs='/tmp/build/tests/testsuite.dir/09/libboth.la '
+ test link = dlpreopen
+ test link '!=' dlopen
+ test link '!=' conv
+ lib_search_path=
This looks to me like you don't have this code in your ltmain.m4sh, or
libtool wasn't updated properly afterwards:
if test "$pass" = link; then
if test "$linkmode" = "prog"; then
compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
else
compiler_flags="$compiler_flags "`$ECHO "X
$new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework
\1%g'`
fi
fi
You could grep for 'compiler_flags=.*ltframework' to find out.
Note that only shortly before the patch in question, a patch was applied
to fix Makefile rebuilding rules of `libtool' from `ltmain.m4sh' by way
of `ltmain.sh', so an older Makefile version could have generated that.
Could you try again with an up to date tree
make check-local TESTSUITEFLAGS='-v -d -x 9'
and see if things work now for you?
Thanks,
Ralf
- Re: HEAD: fix the inherited_linker_flags regression,
Ralf Wildenhues <=