corrections for Mac OS X (dynamic link command, thread library, extra libraries, and name of built shared library)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-04-07 14:41:16 +00:00
parent 54081dc5c2
commit f3c067d2dc
2 changed files with 327 additions and 305 deletions

614
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -2090,7 +2090,7 @@ if test "$wxUSE_SHARED" = "yes"; then
fi fi
;; ;;
*-*-darwin* ) *-*-darwin* )
SHARED_LD="libtool -dynamic -o" SHARED_LD="${CXX} -dynamic -dylib -o"
PIC_FLAG="-fPIC" PIC_FLAG="-fPIC"
if test "$wxUSE_OPENGL" = "yes"; then if test "$wxUSE_OPENGL" = "yes"; then
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
@@ -2099,6 +2099,16 @@ if test "$wxUSE_SHARED" = "yes"; then
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
WX_ALL="CREATE_LINKS" WX_ALL="CREATE_LINKS"
fi fi
dnl the name of the shared library
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
dnl the name of the links to the shared library
WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
;; ;;
*-*-osf* ) *-*-osf* )
SHARED_LD="${CXX} -shared -o" SHARED_LD="${CXX} -shared -o"
@@ -2583,6 +2593,8 @@ if test "$wxUSE_THREADS" = "yes" ; then
dnl AIX calls the library libpthreads - thanks IBM! dnl AIX calls the library libpthreads - thanks IBM!
if test "$USE_AIX" = 1; then if test "$USE_AIX" = 1; then
THREADS_LIB=pthreads THREADS_LIB=pthreads
elif test "$USE_MAC" = 1; then
THREADS_LIB=cc_dynamic
else else
THREADS_LIB=pthread THREADS_LIB=pthread
fi fi
@@ -3833,7 +3845,7 @@ dnl
dnl note that we always link with -lm except for Mac OS X dnl note that we always link with -lm except for Mac OS X
dnl extended.c uses floor() and is always linked in dnl extended.c uses floor() and is always linked in
if test "$USE_MAC" = 1 ; then if test "$USE_MAC" = 1 ; then
EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System" EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -Llib -lxpm -framework Carbon -framework System"
CFLAGS="${CFLAGS} -fpascal-strings" CFLAGS="${CFLAGS} -fpascal-strings"
CPPFLAGS="${CPPFLAGS} -fpascal-strings" CPPFLAGS="${CPPFLAGS} -fpascal-strings"
else else
@@ -4042,7 +4054,7 @@ AC_OUTPUT([
dnl the debian build process wants setup.h in the lib subdir so we dnl the debian build process wants setup.h in the lib subdir so we
dnl can pretend wxWin is already installed, so we *copy* it there dnl can pretend wxWin is already installed, so we *copy* it there
if test ! -d lib; then if test ! -d lib; then
mkdir lib mkdir lib
fi fi