libtool-patches
[Top][All Lists]
Advanced

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

[PATCH 09/12] Run versioning checks on aix with 'aix-soname'.


From: Michael Haubenwallner
Subject: [PATCH 09/12] Run versioning checks on aix with 'aix-soname'.
Date: Tue, 2 Oct 2012 17:34:50 +0200

* tests/versioning.at: On AIX, when shared_archive_member_spec is
defined, we can run the versioning check.
---
 tests/versioning.at |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/versioning.at b/tests/versioning.at
index b66c816..226b329 100644
--- a/tests/versioning.at
+++ b/tests/versioning.at
@@ -24,7 +24,7 @@
 AT_SETUP([versioning])
 AT_KEYWORDS([libtool])
 
-eval "`$LIBTOOL --config | $EGREP '^(objdir|host_os)='`"
+eval "`$LIBTOOL --config | $EGREP 
'^(objdir|host_os|shared_archive_member_spec)='`"
 
 # Setup some library and program sources:
 # a library (a1), a new revision (a2), a compatible update (a3),
@@ -228,9 +228,10 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o 
liba.la liba4.lo ]dnl
 AT_CHECK([$LIBTOOL --mode=install cp liba.la $libdir], [], [ignore], [ignore])
 AT_CHECK([$LIBTOOL --mode=clean rm -f liba.la], [], [ignore], [ignore])
 
-# This test does not work on AIX, not even with runtimelinking, because
-# the linker always records the unversioned name as dependency.
-AT_CHECK([:; case $host_os in aix*) exit 77;; esac])
+# This test does work on AIX when the 'aix-soname' feature is enabled only,
+# which is reflected in shared_archive_member_spec set. Otherways, even with
+# runtimelinking, the linker always records the unversioned name as dependency.
+AT_CHECK([:; case $shared_archive_member_spec:$host_os in :aix*) exit 77;; 
esac])
 
 test_installed
 
-- 
1.7.3.4




reply via email to

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