summaryrefslogtreecommitdiff
path: root/tests/inherited_flags.at
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-05-03 18:07:28 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-05-03 18:07:28 +0000
commit3175b66b648de3ac524a6c837d7384ccc0e26c6f (patch)
tree075a8c3fed31fd72a48a7b1a03383be127fa1641 /tests/inherited_flags.at
parent3399dea117f3cb0d20dac45d9256d45b272e76a0 (diff)
downloadlibtool-3175b66b648de3ac524a6c837d7384ccc0e26c6f.tar.gz
* 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.
Diffstat (limited to 'tests/inherited_flags.at')
-rw-r--r--tests/inherited_flags.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/inherited_flags.at b/tests/inherited_flags.at
index cd693fa6..7a2fc4ec 100644
--- a/tests/inherited_flags.at
+++ b/tests/inherited_flags.at
@@ -101,4 +101,13 @@ AT_CHECK([grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
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