Build: macOS: Fix shared library rpath length padding error
This commit adds the `-headerpad_max_install_names` to the macOS `make deps` dependencies build linker flags. This fixes dependency install errors where the Xcode `install_name_tool` couldn't properly set certain rpath paths when they were exceeding a certain length. With this flag ensuring that the maximum amount of padding is reserved for eventual path changes. Pull Request: https://projects.blender.org/blender/blender/pulls/128959
This commit is contained in:
committed by
Jonas Holzman
parent
be24e7a6a1
commit
bb672a7e7c
@@ -198,7 +198,7 @@ else()
|
||||
|
||||
set(PLATFORM_CFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
|
||||
set(PLATFORM_CXXFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -std=c++17 -stdlib=libc++ -arch ${CMAKE_OSX_ARCHITECTURES}")
|
||||
set(PLATFORM_LDFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
|
||||
set(PLATFORM_LDFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES} -headerpad_max_install_names")
|
||||
if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "x86_64")
|
||||
set(PLATFORM_BUILD_TARGET --build=x86_64-apple-darwin19.0.0) # OS X 10.15
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user