File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,9 @@ macro(ADD_PYTHON_LIBRARY name)
109
109
# on Mac, we need to use the "-bundle" gcc flag, which is what MODULE
110
110
# does:
111
111
add_library (${name} MODULE ${ARGN} )
112
- # and "-flat_namespace -undefined suppress" link flags, that we need
113
- # to add by hand:
112
+ # and "-undefined dynamic_lookup" link flags, that we need to add by hand:
114
113
set_property (TARGET ${name} APPEND_STRING PROPERTY
115
- LINK_FLAGS " -flat_namespace - undefined suppress -Wl,-exported_symbol,_PyInit_${name} " )
114
+ LINK_FLAGS " -undefined dynamic_lookup -Wl,-exported_symbol,_PyInit_${name} " )
116
115
ELSEIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
117
116
# on Linux, we need to use the "-shared" gcc flag, which is what SHARED
118
117
# does:
You can’t perform that action at this time.
0 commit comments