Ticket #3895: patch-CMakeDefaultMakeRuleVariables.cmake.diff

File patch-CMakeDefaultMakeRuleVariables.cmake.diff, 796 bytes (added by cssdev@…, 19 years ago)

Patch to remove explicit -lgcc on Mac OS X

  • Modules/CMakeDefaultMakeRuleVariables.cmake

    old new  
    4646      "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
    4747ENDIF(NOT CMAKE_CXX_CREATE_SHARED_LIBRARY)
    4848
    49 IF(CMAKE_COMPILER_IS_GNUCXX)
     49IF(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
    5050  SET(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} -lgcc")
    51 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
     51ENDIF(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
    5252
    5353# create a c++ shared module copy the shared library rule by default
    5454IF(NOT CMAKE_CXX_CREATE_SHARED_MODULE)