From 5c871c90170c8839fce079704826873e0dab1c30 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Tue, 12 Jan 2010 00:31:50 +0100 Subject: [PATCH] Workaround a linker problem on OSX 10.4 --- configure.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.cmake b/configure.cmake index 7b64aa77061..9df2a4f19a1 100644 --- a/configure.cmake +++ b/configure.cmake @@ -92,6 +92,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX) # mininal architecture flags, i486 enables GCC atomics ADD_DEFINITIONS(-march=i486) ENDIF() + IF(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET) + # Workaround linker problems on OSX 10.4 + IF(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS "10.5") + ADD_DEFINITIONS(-fno-common) + ENDIF() + ENDIF() ENDIF()