+2007-05-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libltdl/config/ltmain.m4sh (func_mode_link): When adding
+ new_inherited_linker_flags to compiler_flags, remember to
+ translate .ltframework back. Fixes bug introduced 2007-04-23.
+ * THANKS: Update.
+ * tests/inherited_flags.at: Amend test.
+ Report by Christoph Egger.
+
2007-05-03 Reuben Thomas <rrt@sc3d.org> (tiny change)
* doc/libtool.texi (Libltdl interface): Fix typo.
Carl D. Roth roth@cse.ucsc.edu
Chris P. Ross cross@eng.us.uu.net
Christian Biesinger cbiesinger@web.de
+ Christoph Egger Christoph_Egger@gmx.de
Christopher Hulbert cchgroupmail@gmail.com
Dalibor Topic robilad@kaffe.org
Daniel Reed n@ml.org
compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
else
- compiler_flags="$compiler_flags $new_inherited_linker_flags"
+ compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
fi
fi
dependency_libs="$newdependency_libs"
AT_CHECK([grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
[1],[ignore],[ignore])
+mv libboth.la libboth.la.bak
+sed "s/^inherited_linker_flags.*/inherited_linker_flags='-framework Cocoa -framework ApplicationServices'/" < libboth.la.bak > libboth.la
+rm libboth.la.bak
+
+AT_CHECK([$LIBTOOL -n --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -framework Cocoa -framework ApplicationServices -o libbaz.la baz.lo libboth.la -no-undefined -rpath /usr/local/lib],
+ [], [stdout], [ignore])
+AT_CHECK([grep Cocoa.ltframework stdout], [1], [], [])
+AT_CHECK([grep ' -framework Cocoa' stdout], [0], [ignore], [])
+
AT_CLEANUP