Changeset 5

Show
Ignore:
Timestamp:
08/03/07 11:07:31
Author:
robert
Message:

From Martin Lavery, fix for OSX.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CMakeLists.txt

    r1 r5  
    182182        IF(EXISTS /Developer/SDKs/10.5.sdk) 
    183183            SET(CMAKE_OSX_ARCHITECTURES "ppc;i386;ppc64;x86_64" CACHE STRING "Build architectures for OSX" FORCE) 
    184             SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 
     184            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -bind_at_load -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 
    185185        ELSE(EXISTS /Developer/SDKs/10.5.sdk) 
    186186            IF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) 
    187187                SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE) 
    188                 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 
     188                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -bind_at_load -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 
    189189            ELSE(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) 
    190190                # No Universal Binary support