libtool-patches
[Top][All Lists]
Advanced

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

FYI: HEAD testsuite: add $CPPFLAGS to all compile commands


From: Ralf Wildenhues
Subject: FYI: HEAD testsuite: add $CPPFLAGS to all compile commands
Date: Tue, 6 Feb 2007 20:01:56 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Applied to HEAD.

Cheers,
Ralf

2007-02-06  Ralf Wildenhues  <address@hidden>

        * 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.

Index: tests/convenience.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/convenience.at,v
retrieving revision 1.6
diff -u -r1.6 convenience.at
--- tests/convenience.at        5 Feb 2006 09:56:44 -0000       1.6
+++ tests/convenience.at        6 Feb 2007 19:01:22 -0000
@@ -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 @@
 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: tests/deplibs-ident.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/deplibs-ident.at,v
retrieving revision 1.4
diff -u -r1.4 deplibs-ident.at
--- tests/deplibs-ident.at      5 Feb 2006 09:56:44 -0000       1.4
+++ tests/deplibs-ident.at      6 Feb 2007 19:01:22 -0000
@@ -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 @@
 
 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 @@
   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: tests/duplicate_members.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/duplicate_members.at,v
retrieving revision 1.6
diff -u -r1.6 duplicate_members.at
--- tests/duplicate_members.at  1 Sep 2006 16:19:54 -0000       1.6
+++ tests/duplicate_members.at  6 Feb 2007 19:01:22 -0000
@@ -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 @@
 
 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: tests/early-libtool.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/early-libtool.at,v
retrieving revision 1.10
diff -u -r1.10 early-libtool.at
--- tests/early-libtool.at      3 Sep 2006 15:08:12 -0000       1.10
+++ tests/early-libtool.at      6 Feb 2007 19:01:22 -0000
@@ -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 @@
 _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: tests/inherited_flags.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/inherited_flags.at,v
retrieving revision 1.9
diff -u -r1.9 inherited_flags.at
--- tests/inherited_flags.at    11 Sep 2006 21:35:25 -0000      1.9
+++ tests/inherited_flags.at    6 Feb 2007 19:01:22 -0000
@@ -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 @@
 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: tests/link-order.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/link-order.at,v
retrieving revision 1.12
diff -u -r1.12 link-order.at
--- tests/link-order.at 18 May 2006 00:10:37 -0000      1.12
+++ tests/link-order.at 6 Feb 2007 19:01:22 -0000
@@ -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 @@
 [[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 @@
 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 @@
 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: tests/stresstest.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/stresstest.at,v
retrieving revision 1.12
diff -u -r1.12 stresstest.at
--- tests/stresstest.at 28 Jan 2007 12:43:37 -0000      1.12
+++ tests/stresstest.at 6 Feb 2007 19:01:22 -0000
@@ -195,10 +195,10 @@
 ]])
 
 
-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 ;;




reply via email to

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