libtool-patches
[Top][All Lists]
Advanced

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

link-order: skip grep on AIX


From: Ralf Wildenhues
Subject: link-order: skip grep on AIX
Date: Fri, 23 Sep 2005 16:30:03 +0200
User-agent: Mutt/1.4.1i

OK to commit?  I did not try to put a different expression for AIX
in there because one size would not fit all here (xlc vs gcc, different
AIX versions, static vs shared), and this seems fairly safe to do.

By the way, with this patch the new testsuite on AIX only fails the
template test with subdirs (core dump of the executable -- compiler
or linker bug?) -- without runtimelinking even!  Surely the old test
suite still exposes (mdemo) the dlopen-self and the mdemo2 failures.

By the way, on an AIX 5.3 system I have access to, there is no
/lib/syscalls.exp file, so static linking fails completely with libtool.
Does anybody know whether this may be an installation error I should
report, or AIX changed this somehow since 5.2?

Cheers,
Ralf
        * tests/link-order.at [ aix* ]: skip path syntax grep.

Index: tests/link-order.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/link-order.at,v
retrieving revision 1.5
diff -u -r1.5 link-order.at
--- tests/link-order.at 22 Sep 2005 06:44:24 -0000      1.5
+++ tests/link-order.at 23 Sep 2005 14:22:05 -0000
@@ -64,10 +63,15 @@
 $LIBTOOL --mode=clean rm -f src/libb.la
 $LIBTOOL --mode=clean rm -f src/liba.la
 
-# Do not error if we do not relink (e.g. static-only systems)
-AT_CHECK([if $EGREP relinking stderr; then
-           $EGREP ' -L.*\/new\/lib -lb -L.*\/old\/lib -lcee' stdout
-         else :; fi], [0], [ignore], [], [echo "wrong link order"])
+case $host_os in
+aix*) ;;  # AIX has different path syntax
+*)
+  # Do not error if we do not relink (e.g. static-only systems)
+  AT_CHECK([if $EGREP relinking stderr; then
+             $EGREP ' -L.*\/new\/lib -lb -L.*\/old\/lib -lcee' stdout
+           else :; fi], [0], [ignore], [], [echo "wrong link order"])
+  ;;
+esac
 
 for i in old new; do
   cat >src/main_$i.c <<EOF




reply via email to

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