diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-12 00:31:50 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-12 00:31:50 +0100 |
commit | 5c871c90170c8839fce079704826873e0dab1c30 (patch) | |
tree | cd0d0653b49dee8ba48d432d7fd47d3e6f5960a0 /configure.cmake | |
parent | ed40723dc93b6b334fab57f21222748b0c97d5f7 (diff) | |
download | mariadb-git-5c871c90170c8839fce079704826873e0dab1c30.tar.gz |
Workaround a linker problem on OSX 10.4
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
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() |