(blind) fixes for building shared libraries under AIX with gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
23
configure.in
23
configure.in
@@ -224,8 +224,11 @@ case "${host}" in
|
|||||||
USE_AIX=1
|
USE_AIX=1
|
||||||
USE_SYSV=1
|
USE_SYSV=1
|
||||||
USE_SVR4=1
|
USE_SVR4=1
|
||||||
dnl Irvin Probst <irvin.probst@fr.thalesgroup.com> reports that the shared
|
dnl quoting from http://www-1.ibm.com/servers/esdd/articles/gnu.html:
|
||||||
dnl libraries under AIX have the same suffix as the normal ones
|
dnl
|
||||||
|
dnl Both archive libraries and shared libraries on AIX have an .a
|
||||||
|
dnl extension. This will explain why you can't link with an .so and
|
||||||
|
dnl why it works with the name changed to .a.
|
||||||
SO_SUFFIX=a
|
SO_SUFFIX=a
|
||||||
AC_DEFINE(__AIX__)
|
AC_DEFINE(__AIX__)
|
||||||
AC_DEFINE(__SYSV__)
|
AC_DEFINE(__SYSV__)
|
||||||
@@ -2754,16 +2757,18 @@ if test "$wxUSE_SHARED" = "yes"; then
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-aix* )
|
*-*-aix* )
|
||||||
|
dnl default settings are ok for gcc
|
||||||
|
if test "$GCC" != "yes"; then
|
||||||
dnl the abs path below used to be hardcoded here so I guess it must
|
dnl the abs path below used to be hardcoded here so I guess it must
|
||||||
dnl be some sort of standard location under AIX?
|
dnl be some sort of standard location under AIX?
|
||||||
AC_CHECK_PROG(AIX_CXX_LD, makeC++SharedLib,
|
AC_CHECK_PROG(AIX_CXX_LD, makeC++SharedLib,
|
||||||
makeC++SharedLib, /usr/lpp/xlC/bin/makeC++SharedLib)
|
makeC++SharedLib, /usr/lpp/xlC/bin/makeC++SharedLib)
|
||||||
|
|
||||||
SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
|
SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*-cygwin* | *-*-mingw32* )
|
*-*-cygwin* | *-*-mingw32* )
|
||||||
|
|
||||||
WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
|
WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
|
||||||
|
|
||||||
SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
|
SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
|
||||||
@@ -3361,7 +3366,17 @@ if test "$TOOLKIT" != "MSW"; then
|
|||||||
AC_MSG_CHECKING([if more special flags are required for pthreads])
|
AC_MSG_CHECKING([if more special flags are required for pthreads])
|
||||||
flag=no
|
flag=no
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-aix* | *-freebsd*)
|
*-aix*)
|
||||||
|
dnl again quoting from
|
||||||
|
dnl http://www-1.ibm.com/servers/esdd/articles/gnu.html:
|
||||||
|
dnl
|
||||||
|
dnl When compiling and linking with -pthread, the library
|
||||||
|
dnl search path should include -L/usr/lib/threads at the
|
||||||
|
dnl beginning of the path.
|
||||||
|
LDFLAGS="-L/usr/lib/threads $LDFLAGS"
|
||||||
|
flag="-D_THREAD_SAFE"
|
||||||
|
;;
|
||||||
|
*-freebsd*)
|
||||||
flag="-D_THREAD_SAFE"
|
flag="-D_THREAD_SAFE"
|
||||||
;;
|
;;
|
||||||
*-hp-hpux* )
|
*-hp-hpux* )
|
||||||
|
Reference in New Issue
Block a user