added support for using Sun CC to link shared libraries under Linux too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-06-22 17:15:33 +00:00
parent 999020e1bb
commit 9435c35e40

View File

@@ -309,27 +309,17 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD],
;; ;;
*-*-linux* ) *-*-linux* )
if test "x$GCC" != "xyes"; then if test "$INTELCC" = "yes"; then
AC_CACHE_CHECK([for Intel compiler], bakefile_cv_prog_icc, PIC_FLAG="-KPIC"
[ elif test "x$SUNCXX" = "xyes"; then
AC_TRY_COMPILE([], SHARED_LD_CC="${CC} -G -o"
[ SHARED_LD_CXX="${CXX} -G -o"
#ifndef __INTEL_COMPILER PIC_FLAG="-KPIC"
This is not ICC
#endif
],
bakefile_cv_prog_icc=yes,
bakefile_cv_prog_icc=no
)
])
if test "$bakefile_cv_prog_icc" = "yes"; then
PIC_FLAG="-KPIC"
fi
fi fi
;; ;;
*-*-solaris2* ) *-*-solaris2* )
if test "x$GCC" != xyes ; then if test "x$SUNCXX" = xyes ; then
SHARED_LD_CC="${CC} -G -o" SHARED_LD_CC="${CC} -G -o"
SHARED_LD_CXX="${CXX} -G -o" SHARED_LD_CXX="${CXX} -G -o"
PIC_FLAG="-KPIC" PIC_FLAG="-KPIC"
@@ -500,7 +490,11 @@ AC_DEFUN([AC_BAKEFILE_SHARED_VERSIONS],
case "${BAKEFILE_HOST}" in case "${BAKEFILE_HOST}" in
*-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
SONAME_FLAG="-Wl,-soname," if test "x$SUNCXX" = "xyes"; then
SONAME_FLAG="-h "
else
SONAME_FLAG="-Wl,-soname,"
fi
USE_SOVERSION=1 USE_SOVERSION=1
USE_SOVERLINUX=1 USE_SOVERLINUX=1
USE_SOSYMLINKS=1 USE_SOSYMLINKS=1