bug-ncurses
[Top][All Lists]
Advanced

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

AIX shared library patch


From: Lital Natan
Subject: AIX shared library patch
Date: Wed, 24 Dec 2008 14:20:13 +0200
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

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





reply via email to

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