Ticket #44232: patch-SHARED_BUNDLE_flag.diff
File patch-SHARED_BUNDLE_flag.diff, 4.0 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
./Modules/Platform/Darwin-Clang.cmake
old new 21 21 macro(__darwin_compiler_clang lang) 22 22 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 23 23 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 24 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 24 #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 25 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 25 26 set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") 26 27 set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") 27 28 endmacro() -
./Modules/Platform/Darwin-GNU.cmake
old new 22 22 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 23 23 # GNU does not have -shared on OS X 24 24 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 25 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 25 #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 26 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 26 27 endmacro() 27 28 28 29 macro(cmake_gnu_set_sysroot_flag lang) -
./Modules/Platform/Darwin-Intel.cmake
old new 21 21 macro(__darwin_compiler_intel lang) 22 22 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 23 23 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 24 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 24 #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 25 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 25 26 26 27 if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) 27 28 set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") -
./Modules/Platform/Darwin-XL-C.cmake
old new 1 1 set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj") 2 set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") 2 #set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") 3 set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-dynamiclib") 3 4 4 5 # Enable shared library versioning. 5 6 set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name") -
./Modules/Platform/Darwin-XL-CXX.cmake
old new 1 1 set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj") 2 set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") 2 #set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") 3 set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-dynamiclib") 3 4 4 5 # Enable shared library versioning. 5 6 set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name") -
./Modules/Platform/Darwin.cmake
old new 50 50 51 51 set(CMAKE_PLATFORM_HAS_INSTALLNAME 1) 52 52 set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 53 set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names") 53 #set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names") 54 set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 54 55 set(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") 55 56 set(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") 56 57 set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")