]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/convenience.at: Use $CPPFLAGS for compilation.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 6 Feb 2007 19:02:27 +0000 (19:02 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 6 Feb 2007 19:02:27 +0000 (19:02 +0000)
* tests/deplibs-ident.at: Likewise.
* tests/duplicate_members.at: Likewise.
* tests/inherited_flags.at: Likewise.
* tests/link-order.at: Likewise.
* tests/stresstest.at: Likewise.
* tests/early-libtool.at: Likewise.  Do not quote $CC.

ChangeLog
tests/convenience.at
tests/deplibs-ident.at
tests/duplicate_members.at
tests/early-libtool.at
tests/inherited_flags.at
tests/link-order.at
tests/stresstest.at

index ff894bc70dc94c194f28f87e8618253a0e8eaccf..96eb78155fdfdc8bc7e398286366210c567998ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2007-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * tests/convenience.at: Use $CPPFLAGS for compilation.
+       * tests/deplibs-ident.at: Likewise.
+       * tests/duplicate_members.at: Likewise.
+       * tests/inherited_flags.at: Likewise.
+       * tests/link-order.at: Likewise.
+       * tests/stresstest.at: Likewise.
+       * tests/early-libtool.at: Likewise.  Do not quote $CC.
+
        * libltdl/ltdl.c (lt_dlexit): Add casts to fix compilation with
        C++ compiler again.
 
index a1c4f92123bb62cf278a3d96b865bc1ac7f32d03..78a1fdfba55465e1679d013389f1c3862c26cae2 100644 (file)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -38,8 +38,8 @@ int main(void) { return a1() + a2() + a3() != 6; }
 EOF
 for i in 1 2 3; do 
   echo "int a$i(void) { return $i; }" > a$i.c
-  $LIBTOOL --mode=compile $CC $CFLAGS -c main$i.c
-  $LIBTOOL --mode=compile $CC $CFLAGS -c a$i.c
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main$i.c
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a$i.c
   $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la a$i.lo
 done
 AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba12.la liba1.la liba2.la -rpath /notexist],
index 719a17822ee0753fcc6bc345bda136609ed5be6f..36a451c3df8a3a623084e3ace3d65c22c3550768 100644 (file)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -29,7 +29,8 @@ AT_KEYWORDS([libtool])
 
 mkdir a a/b c
 echo 'int c() { return 0; }' > c/libcee.c
-AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c c/libcee.c -o c/libcee.lo],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c c/libcee.c -o c/libcee.lo],
+        [0],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o c/libcee.la c/libcee.lo -rpath /nowhere],
         [0],[ignore],[ignore])
 
@@ -42,7 +43,8 @@ depl_3="-L../c -lcee"
   for i in 1 2 3; do
     eval depend_on_c=\"\$depl_$i\"
     echo "extern int c(void); int a$i() { return c(); }" > liba$i.c
-    AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c liba$i.c],[0],[ignore],[ignore])
+    AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba$i.c],
+            [0],[ignore],[ignore])
     AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba$i.la liba$i.lo $depend_on_c -rpath /nowhere],
           [0],[ignore],[ignore])
   done
index 8c6841d1bc4a7bd1406536ec454a9888391ddfb5..75084f6aa74fc061bc92e3251cb27f997f7dbf87 100755 (executable)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -53,15 +53,15 @@ done
 
 for a in 1 2 3 4 5 6
 do
-  $LIBTOOL --mode=compile --tag=CC $CC -c $CFLAGS -o $a/a.lo $a/a.c
+  $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o $a/a.lo $a/a.c
 done
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libc0.la 6/a.lo
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libconv.la 1/a.lo 2/a.lo 3/a.lo 4/a.lo 5/a.lo libc0.la
 
-$LIBTOOL --mode=compile --tag=CC $CC -c $CFLAGS -o bar.lo bar.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo libconv.la -rpath /notexist
 
-$LIBTOOL --mode=compile --tag=CC $CC -c $CFLAGS -o main.lo main.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.lo main.c
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main main.lo ./libbar.la
 
 LT_AT_EXEC_CHECK([./main],[0],[ignore],[ignore])
index 14e4b16084f60e0cee004f0118bd8ed5358c0229..f827c94889f8cd10c4b851d9d3f17622cc3ad99a 100644 (file)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2005, 2006 Free Software Foundation, Inc.
+# Copyright 2005, 2006, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -137,9 +137,9 @@ hello (void)
 _EOF
 
 # Prove that we can run libtool from inside configure:
-$SHELL ./libtool --mode=compile --tag=CC "$CC" $CPPFLAGS $CFLAGS \
+$SHELL ./libtool --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS \
     -I. -I$srcdir -c -o hello.lo hello.c  || exit 1
-$SHELL ./libtool --mode=link --tag=CC "$CC" $CFLAGS $LDFLAGS \
+$SHELL ./libtool --mode=link --tag=CC $CC $CFLAGS $LDFLAGS \
     -o libhello.la -rpath /notexist hello.lo || exit 1
 
 AC_CONFIG_FILES([Makefile])
index 2dd60fe560884f99d170bf492070e29026a442ad..d56f656a89c6e373152e2dd1a677de632648a930 100644 (file)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2004, 2006 Free Software Foundation, Inc.
+# Copyright 2004, 2006, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -40,10 +40,10 @@ AT_DATA([main.c],
 int main() { return 0;}
 ])
 
-$LIBTOOL --mode=compile --tag=CC $CC $CFLAGS -c -o foo.lo foo.c
-$LIBTOOL --mode=compile --tag=CC $CC $CFLAGS -c -o bar.lo bar.c
-$LIBTOOL --mode=compile --tag=CC $CC $CFLAGS -c -o baz.lo baz.c
-$LIBTOOL --mode=compile --tag=CC $CC $CFLAGS -c -o main.lo main.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o foo.lo foo.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o baz.lo baz.c
+$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o main.lo main.c
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libfoo.la foo.lo -rpath /usr/local/lib -no-undefined
 $LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbar.la bar.lo -rpath /usr/local/lib -no-undefined
 
index 615b23e77df10bd14d4fa076f7c7a270d052333e..9e9631aef4487a2af95105dd7357432f04c74a83 100644 (file)
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU Libtool.                         -*- Autotest -*-
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ AT_DATA(src/c.c,
 [[int c = 1;
 ]])
 
-$LIBTOOL --mode=compile $CC $CFLAGS -c src/c.c -o src/c.lo
+$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/c.c -o src/c.lo
 $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/libcee.la src/c.lo -rpath $prefix_old/lib
 $LIBTOOL --mode=install cp src/libcee.la $prefix_old/lib/libcee.la
 
@@ -54,8 +54,8 @@ int b_$i() { return 1 + c; }
 EOF
 
   prefix=`eval echo \\$prefix_$i`
-  $LIBTOOL --mode=compile $CC $CFLAGS -c src/a_$i.c -o src/a.lo
-  $LIBTOOL --mode=compile $CC $CFLAGS -c src/b_$i.c -o src/b.lo
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/a_$i.c -o src/a.lo
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/b_$i.c -o src/b.lo
   $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/libb.la src/b.lo \
       -L$prefix_old/lib -lcee -rpath $prefix/lib
   $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/liba.la src/a.lo \
@@ -94,7 +94,7 @@ int main(void) { return a_$i() != 3; }
 EOF
 
   prefix=`eval echo \\$prefix_$i`
-  $LIBTOOL --mode=compile $CC $CFLAGS -c src/main_$i.c -o src/main_$i.lo
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c src/main_$i.c -o src/main_$i.lo
   AT_CHECK($LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o src/main_$i src/main_$i.lo -L$prefix/lib -la,
           [0], [ignore], [ignore])
   LT_AT_EXEC_CHECK([src/main_$i])
index 587f9532822b3740c337267d34db6cf31714e140..f8cf87b68151d2efaa03feec1b01ec8ee0a98cc3 100644 (file)
@@ -195,10 +195,10 @@ w15
 ]])
 
 
-AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c a.c -o sub/a.lo],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c b.c -o sub/b.lo],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c main.c],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile $CC $CFLAGS -c dlself.c -o sub3/dlself.lo],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c a.c -o sub/a.lo],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c b.c -o sub/b.lo],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c main.c],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c dlself.c -o sub3/dlself.lo],[0],[ignore],[ignore])
 
 case $allow_undefined_flag in
   unsupported) undef_opts=-no-undefined ;;