use specific linker flags under Mac OS X when linking executables against the
wxWindows dynamic shared library (LDFLAGS_EXE) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2433,7 +2433,7 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
|
||||
dnl Executables must necessarily fully bind the wxWindows library at
|
||||
dnl program launch otherwise lazy binding breaks RTTI class info
|
||||
LDFLAGS="$LDFLAGS -Wl,-bind_at_load"
|
||||
LDFLAGS_EXE="$LDFLAGS_EXE -Wl,-bind_at_load"
|
||||
SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
|
||||
PIC_FLAG="-dynamic -fPIC"
|
||||
SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
|
||||
@@ -4883,6 +4883,7 @@ AC_SUBST(SAMPLES_SUBDIRS)
|
||||
dnl additional libraries and linker settings
|
||||
AC_SUBST(LDFLAGS)
|
||||
AC_SUBST(LDFLAGS_GL)
|
||||
AC_SUBST(LDFLAGS_EXE)
|
||||
AC_SUBST(OPENGL_LIBS)
|
||||
AC_SUBST(DMALLOC_LIBS)
|
||||
AC_SUBST(EXTRADEFS)
|
||||
|
Reference in New Issue
Block a user