Skip to content

Commit 075f92e

Browse files
author
Kasper Peeters
committed
Cherry pick pull request pybind/pybind11#4301 to avoid issue on macOS.
1 parent 50bbcbe commit 075f92e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/bigsur.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: setup python
1414
uses: actions/setup-python@v4
1515
with:
16-
python-version: 3.10
16+
python-version: 3.11
1717

1818
- name: get dependencies
1919
run: brew install cmake boost pcre gmp python3 pkgconfig gtkmm3 adwaita-icon-theme && /usr/local/bin/python3 -m pip install sympy gmpy2 numpy

libs/pybind11/tools/pybind11Common.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ if(CMAKE_VERSION VERSION_LESS 3.13)
7575
set_property(
7676
TARGET pybind11::python_link_helper
7777
APPEND
78-
PROPERTY INTERFACE_LINK_LIBRARIES "$<$<PLATFORM_ID:Darwin>:-undefined dynamic_lookup>")
78+
PROPERTY INTERFACE_LINK_LIBRARIES "$<$<PLATFORM_ID:Darwin>:-undefined suppress -flat_namespace>")
7979
else()
8080
# link_options was added in 3.13+
8181
# This is safer, because you are ensured the deduplication pass in CMake will not consider
8282
# these separate and remove one but not the other.
8383
set_property(
8484
TARGET pybind11::python_link_helper
8585
APPEND
86-
PROPERTY INTERFACE_LINK_OPTIONS "$<$<PLATFORM_ID:Darwin>:LINKER:-undefined,dynamic_lookup>")
86+
PROPERTY INTERFACE_LINK_OPTIONS "$<$<PLATFORM_ID:Darwin>:LINKER:-undefined,suppress,-flat_namespace>")
8787
endif()
8888

8989
# ------------------------ Windows extras -------------------------

0 commit comments

Comments
 (0)