diff options
author | kolen <incredible.angst@gmail.com> | 2017-01-17 23:07:37 +0300 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-01-26 05:05:41 -0800 |
commit | 771d5091163f30c3be5611d19822d6f8ee4f57ff (patch) | |
tree | 1b80e7e747ab3a851bc621b81f9fa78484f8afd4 | |
parent | a53e32eef5d6461976014d593085681f405831b7 (diff) |
Use -undefined dynamic_lookup linkage for python on macos in newmod
-rw-r--r-- | gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake b/gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake index abf4dc4612..33f37d2731 100644 --- a/gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake +++ b/gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake @@ -171,7 +171,12 @@ macro(GR_SWIG_MAKE name) #setup the actual swig library target to be built include(UseSWIG) SWIG_ADD_MODULE(${name} python ${ifiles}) - SWIG_LINK_LIBRARIES(${name} ${PYTHON_LIBRARIES} ${GR_SWIG_LIBRARIES}) + if(APPLE) + set(PYTHON_LINK_OPTIONS "-undefined dynamic_lookup") + else() + set(PYTHON_LINK_OPTIONS ${PYTHON_LIBRARIES}) + endif(APPLE) + SWIG_LINK_LIBRARIES(${name} ${PYTHON_LINK_OPTIONS} ${GR_SWIG_LIBRARIES}) if(${name} STREQUAL "runtime_swig") SET_TARGET_PROPERTIES(${SWIG_MODULE_runtime_swig_REAL_NAME} PROPERTIES DEFINE_SYMBOL "gnuradio_runtime_EXPORTS") endif(${name} STREQUAL "runtime_swig") |