After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774175 - Fails to build on Mac OS due to -stack_size linker option
Fails to build on Mac OS due to -stack_size linker option
Status: RESOLVED OBSOLETE
Product: libpeas
Classification: Platform
Component: general
git master
Other Mac OS
: Normal major
: ---
Assigned To: libpeas-maint
libpeas-maint
Depends on:
Blocks: 774453
 
 
Reported: 2016-11-10 05:37 UTC by Philip Chimento
Modified: 2018-05-22 12:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Don't use extra Python ldflags in shared lib (1.01 KB, patch)
2016-11-10 05:39 UTC, Philip Chimento
none Details | Review

Description Philip Chimento 2016-11-10 05:37:35 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.
Comment 1 Philip Chimento 2016-11-10 05:39:08 UTC
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`.
Comment 2 GNOME Infrastructure Team 2018-05-22 12:16:00 UTC
-- 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.