Skip to content

Commit

Permalink
Adding missing Homebrew rpath to Python on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Aug 16, 2023
1 parent d863078 commit f07fe38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Ports/python3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ else()
list(APPEND OPTIONS "LDFLAGS=\${LDFLAGS//-Wl,--no-undefined/}")
endif()
endif()

if(VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
list(APPEND OPTIONS "LDFLAGS_NODIST=-rpath /opt/homebrew/lib")
endif()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down

0 comments on commit f07fe38

Please sign in to comment.