summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/gr-newmod
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:41 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-01-26 05:24:41 -0800
commitd2db181f67823c7fd60b3ac5d0e47a6cccd7fbc0 (patch)
treec91a882b078483e050e9f72d52fbde31f1c43df0 /gr-utils/python/modtool/gr-newmod
parenta4964a05c6f341ca23fd527712965ff8d173c1a3 (diff)
parenta6323e35d0caa7fb4403aa86b222dee8919da133 (diff)
Merge branch 'master' into next
Diffstat (limited to 'gr-utils/python/modtool/gr-newmod')
-rw-r--r--gr-utils/python/modtool/gr-newmod/cmake/Modules/GrSwig.cmake7
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 ab8926ba7e..58699a7be0 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")