[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/12] No cross-library undefined symbols test on AIX.
From: |
Michael Haubenwallner |
Subject: |
[PATCH 11/12] No cross-library undefined symbols test on AIX. |
Date: |
Tue, 2 Oct 2012 17:34:52 +0200 |
While AIX does support undefined symbols in general, undefined symbols
in one shared library do not trigger another shared library to be marked
as needed by the linker.
* tests/template.at: Skip test with undef syms across libraries on AIX.
---
tests/template.at | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/tests/template.at b/tests/template.at
index 621137d..29aa3cb 100644
--- a/tests/template.at
+++ b/tests/template.at
@@ -129,10 +129,12 @@ LT_AT_TAG([CXX])
AT_KEYWORDS([libtool])
noskip=:
+withundef=:
# Mac OS X.
# The linker has issues with this test.
case $host in
*-darwin*) noskip=false ;;
+*-aix*) withundef=false ;;
esac
@@ -243,7 +245,7 @@ AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS
$LDFLAGS -o sub/main$EXE
[0], [ignore], [ignore])
LT_AT_EXEC_CHECK([./sub/main], [ignore])
# lib convenience
-if $noskip; then
+if $noskip && $withundef; then
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
lib2/libb.la lib2/b.lo -rpath /foo],
[0], [ignore], [ignore])
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la],
@@ -254,11 +256,13 @@ fi
# both installed
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
lib/liba.la lib/a.lo -rpath /foo],
[0], [ignore], [ignore])
+if $withundef; then
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
lib2/libb.la lib2/b.lo -rpath /bar],
[0], [ignore], [ignore])
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
sub/main$EXEEXT $main_o lib2/libb.la lib/liba.la],
[0], [ignore], [ignore])
LT_AT_EXEC_CHECK([./sub/main])
+fi
# both convenience, libb depending on liba
AT_CHECK([$LIBTOOL --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS -o
lib/liba.la lib/a.lo],
[0], [ignore], [ignore])
--
1.7.3.4
- [PATCH 00/12] Improve AIX support: libltdl, filename-based versioning., Michael Haubenwallner, 2012/10/02
- [PATCH 01/12] Support loading shared library archive members., Michael Haubenwallner, 2012/10/02
- [PATCH 04/12] Specify shared member in soname_spec on AIX., Michael Haubenwallner, 2012/10/02
- [PATCH 11/12] No cross-library undefined symbols test on AIX.,
Michael Haubenwallner <=
- [PATCH 06/12] Drop useless symlinks with AIX runtime linking., Michael Haubenwallner, 2012/10/02
- [PATCH 08/12] Implement enable/disable aix-soname options., Michael Haubenwallner, 2012/10/02
- [PATCH 05/12] AIX runtime linking allows undef syms by default., Michael Haubenwallner, 2012/10/02
- [PATCH 03/12] Do not remove shared archive member in mode clean., Michael Haubenwallner, 2012/10/02
- [PATCH 07/12] Declare enable/disable aix-soname options., Michael Haubenwallner, 2012/10/02
- [PATCH 10/12] Detect XFAIL based on hardcode configuration., Michael Haubenwallner, 2012/10/02
- [PATCH 02/12] Prepare -dlopen option for shared archive members., Michael Haubenwallner, 2012/10/02
- [PATCH 12/12] Set aix-soname=yes as default., Michael Haubenwallner, 2012/10/02
- [PATCH 09/12] Run versioning checks on aix with 'aix-soname'., Michael Haubenwallner, 2012/10/02
- Re: [PATCH 00/12] Improve AIX support: libltdl, filename-based versioning., Michael Haubenwallner, 2012/10/17