improved dynamic shared library creation for Darwin / Mac OS X

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-05-08 12:48:08 +00:00
parent 0df4f2ffa0
commit fe0d8518b9
2 changed files with 312 additions and 314 deletions

615
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -2437,12 +2437,11 @@ if test "$wxUSE_SHARED" = "yes"; then
dnl http://fink.sourceforge.net/doc/porting/porting.html dnl http://fink.sourceforge.net/doc/porting/porting.html
CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
dnl Executables must necessarily fully bind the wxWindows library at dnl wxWindows must be fully binded (lazy binding breaks RTTI classinfo)
dnl program launch otherwise lazy binding breaks RTTI class info dnl this can be done either with the exe linker flag -Wl,-bind_at_load
LDFLAGS_EXE="$LDFLAGS_EXE -Wl,-bind_at_load" dnl or with a double stage link in order to create a single module
dnl The initialization routine doesn't seem useful with lazy linking solved dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved
dnl SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -o"
PIC_FLAG="-dynamic -fPIC" PIC_FLAG="-dynamic -fPIC"
SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
SONAME_FLAGS_GL=${SONAME_FLAGS} SONAME_FLAGS_GL=${SONAME_FLAGS}