[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX shared library patch
From: |
Lital Natan |
Subject: |
Re: AIX shared library patch |
Date: |
Wed, 24 Dec 2008 14:45:56 +0200 |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081125) |
In addition when building a shared library on AIX, the tests fail
because make test expects the test libraries to be suffixed with .so.
So the patch should actually be as follows:
diff -crB ncurses-5.7/configure
ncurses-5.7-aix-shared-libraries-patch/configure
*** ncurses-5.7/configure 2008-12-23 14:48:14.000000000 +0200
--- ncurses-5.7-aix-shared-libraries-patch/configure 2008-12-23
15:23:51.000000000 +0200
***************
*** 5074,5079 ****
--- 5074,5085 ----
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
fi
;;
+ aix*)
+ if test "$GCC" = yes; then
+ CC_SHARED_OPTS=
+ MK_SHARED_LIB="$(CC) -shared"
+ fi
+ ;;
hpux*)
# (tested with gcc 2.7.2 -- I don't have c89)
if test "$GCC" = yes; then
***************
*** 16270,16275 ****
--- 16276,16285 ----
DFT_LIB_SUFFIX='.dylib'
DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
;;
+ aix*)
+ DFT_LIB_SUFFIX='.a'
+ DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
+ ;;
hpux*)
case $target in
ia64*)
Lital Natan wrote:
Hello,
I've seen mentioning of a patch to solve the "Shared libraries are not
supported in this version" configure message on AIX (simply by adding
the correct CC_SHARED_OPTS and MK_SHARED_LIBS values). The mail
regarded ncurses 5.5, but in 5.7 there is still no mentioning of this
fix. Why?
It seems there is simply no aix clause.
Anycase, here is my patch for compiling ncurses-5.7 shared library on
AIX.
please note that I'm not taking for account which AIX version it is,
meaning my patch is probably flawed when it comes to older AIX
versions (I use 6.1, it should be fine for 5.1+ as well)
diff -crB ncurses-5.7/configure
ncurses-5.7-aix-shared-libraries-patch/configure
*** ncurses-5.7/configure 2008-12-23 14:48:14.000000000 +0200
--- ncurses-5.7-aix-shared-libraries-patch/configure 2008-12-23
15:23:51.000000000 +0200
***************
*** 5074,5079 ****
--- 5074,5085 ----
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
fi
;;
+ aix*)
+ if test "$GCC" = yes; then
+ CC_SHARED_OPTS=
+ MK_SHARED_LIB="$(CC) -shared"
+ fi
+ ;;
hpux*)
# (tested with gcc 2.7.2 -- I don't have c89)
if test "$GCC" = yes; then