GNOME Bugzilla – Bug 774175
Fails to build on Mac OS due to -stack_size linker option
Last modified: 2018-05-22 12:16:00 UTC
Building libpeas on Mac OS (10.12.1) from JHBuild fails: CCLD libpython3loader.la ld: -stack_size option can only be used when linking a main executable clang: error: linker command failed with exit code 1 (use -v to see invocation) The -Wl,-stack_size,1000000 comes from "python3-config --ldflags" which is called in configure.ac. I am reasonably sure that when building a shared library like libpython3loader, only the output of "python3-config --libs" should be used, instead of both --ldflags and --libs. Here is a patch that completes the build for me.
Created attachment 339425 [details] [review] build: Don't use extra Python ldflags in shared lib `python3-config --ldflags` includes a "-Wl,-stack_size,1000000" flag on Mac OS 10.12.1 which should not be passed to the linker when building a shared library like libpython3loader. Instead use `python3-config --libs`.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libpeas/issues/23.