Update to Mac OS X build system, courtesy of mattintosh4, issue 1795

This commit is contained in:
DrSlony
2013-04-22 01:04:20 +01:00
parent dadf0f91c3
commit 2a24da5ffb
3 changed files with 86 additions and 123 deletions

View File

@@ -62,7 +62,7 @@ endif (WIN32)
if (APPLE)
if (CMAKE_CXX_COMPILER MATCHES "g\\+\\+-mp-4.[5-8]" OR
CMAKE_CXX_COMPILER_ARG1 MATCHES "g\\+\\+-mp-4.[5-8]")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-weak_library,/usr/lib/libstdc++.6.dylib")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /usr/lib/libstdc++.6.dylib")
message (STATUS "CMAKE_CXX_COMPILER is MacPorts GCC.\n CMAKE_EXE_LINKER_FLAGS: ${CMAKE_EXE_LINKER_FLAGS}")
endif ()
endif (APPLE)