libtool-patches
[Top][All Lists]
Advanced

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

[PATCH 10/12] Detect XFAIL based on hardcode configuration.


From: Michael Haubenwallner
Subject: [PATCH 10/12] Detect XFAIL based on hardcode configuration.
Date: Tue, 2 Oct 2012 17:34:51 +0200

* tests/deplibs-ident.at: To define whether this test should XFAIL, use
hardcode_action, hardcode_direct, hardcode_direct_absolute configuration
settings instead of platforms aix, hppa-hpux, interix or openbsd.
---
 tests/deplibs-ident.at |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
index 92372ec..5e981a9 100644
--- a/tests/deplibs-ident.at
+++ b/tests/deplibs-ident.at
@@ -67,10 +67,13 @@ int main() { return a1() + a2() + a3() + c(); }
   AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o b$EXEEXT b.$OBJEXT 
../liba1.la ../liba2.la ../liba3.la ../../c/libcee.la -rpath /nowhere],
           [0],[stdout],[ignore])
   AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
-  AT_XFAIL_IF([case $host in
-                 *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
-                 *):;;
-               esac])
+  AT_XFAIL_IF([dnl
+    eval `$LIBTOOL --config | $EGREP 
'^hardcode_(direct|direct_absolute|action)='`
+    case $hardcode_action:$hardcode_direct:$hardcode_direct_absolute in
+      relink:yes:no) :;;
+      *:no:*) :;;
+      *:*:*) false;;
+    esac])
   dnl This is currently broken in libtool
 )
 
-- 
1.7.3.4




reply via email to

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