Bug #1678
Use -undefined dynamic_lookup when using Python and building on Mac OS X
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/31/2016
Due date:
% Done:
0%
Resolution:
Spec Reference:
Description
Description¶
Building GrOsmoSDR on Mac OS X should use the -undefined dynamic_lookup
as value for the Python library instead of the -lpython
and/or -framework /path/to/python/framework
to ensure Python gets linked dynamically without having all symbols resolved at link time.
More information: http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/
Possible fix¶
Set the PYTHON_LIBRARY variable to -undefined dynamic_lookup
when running CMake.
I've attached a patch which I'm already using for the package in Homebrew. Unfortunately this patch does not work with the latest version of CMake (3.5.0) therefore I'm using it in conjunction with an older version of CMake (3.3.2).
Additional information¶
Operating system: Mac OS 10.11.4
GrOsmoSDR: 0.1.4
CMake: 3.3.2