don't use -single_module together with -bundle under Darwin (ld gives an error for this)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -315,8 +315,11 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD],
|
||||
dnl or with a double stage link in order to create a single module
|
||||
dnl "-init _wxWindowsDylibInit" not useful with lazy linking solved
|
||||
|
||||
SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
|
||||
SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
|
||||
|
||||
dnl If using newer dev tools then there is a -single_module flag that
|
||||
dnl we can use to do this, otherwise we'll need to use a helper
|
||||
dnl we can use to do this for dylibs, otherwise we'll need to use a helper
|
||||
dnl script. Check the version of gcc to see which way we can go:
|
||||
AC_CACHE_CHECK([for gcc 3.1 or later], bakefile_cv_gcc31, [
|
||||
AC_TRY_COMPILE([],
|
||||
@@ -340,15 +343,11 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD],
|
||||
|
||||
dnl Use the shared-ld-sh helper script
|
||||
SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
|
||||
SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
|
||||
SHARED_LD_CXX="$SHARED_LD_CC"
|
||||
SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
|
||||
else
|
||||
dnl Use the -single_module flag and let the linker do it for us
|
||||
SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
|
||||
SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
|
||||
SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
|
||||
SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
|
||||
fi
|
||||
|
||||
if test "x$GCC" == "xyes"; then
|
||||
|
Reference in New Issue
Block a user