libtool-patches
[Top][All Lists]
Advanced

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

Re: FYI: stresstest -no-undefined nitfix


From: Ralf Wildenhues
Subject: Re: FYI: stresstest -no-undefined nitfix
Date: Mon, 10 Oct 2005 20:52:28 +0200
User-agent: Mutt/1.5.9i

* Ralf Wildenhues wrote on Mon, Oct 10, 2005 at 06:26:04PM CEST:
> I have applied the following trivial bugfix to CVS HEAD
> (every $host_os which sets allow_undefined_flag=unsupported needs this),

D'oh.  Any reason against applying this instead?
(getting the "trivial" ones wrong should teach me to ask for approval..)

Cheers,
Ralf

        * tests/stresstest.at: Use `allow_undefined_flag' instead of
        host_os setting.

Index: tests/stresstest.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/stresstest.at,v
retrieving revision 1.7
diff -u -r1.7 stresstest.at
--- tests/stresstest.at 10 Oct 2005 16:25:09 -0000      1.7
+++ tests/stresstest.at 10 Oct 2005 18:50:26 -0000
@@ -23,7 +23,7 @@

 AT_BANNER([Libtool stress test.])
 AT_SETUP([Link option thorough search test])
-eval `$LIBTOOL --config | $EGREP '^(CC|objdir)='`
+eval `$LIBTOOL --config | $EGREP '^(CC|objdir|allow_undefined_flag)='`

 mkdir sub sub2 sub3 2>/dev/null

@@ -170,11 +170,9 @@
 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])

-case $host_os in
-  aix3* | beos* | cygwin* | mingw* | os2* | pw32*)
-    undef_opts=-no-undefined ;;
-  *)
-    undef_opts='"" -no-undefined' ;;
+case $allow_undefined_flag in
+  unsupported) undef_opts=-no-undefined ;;
+  *)           undef_opts='"" -no-undefined' ;;
 esac

 for l1 in $undef_opts




reply via email to

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