My system is macOS Sierra (10.12.3) built from the latest bootstrap-prefix.sh. The build for pygobject fails with the following:
ld: -stack_size option can only be used when linking a main executable
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
That appears to be caused by configure using python-config --ldflags instead of python-config --libs, which on macOS gives the following:
-lpython3.5 -lintl -ldl -framework CoreFoundation -Wl,-stack_size,1000000 -framework CoreFoundation
pygobject is pulled in by media-libs/vips.
Created attachment 466748 [details]
Created attachment 466750 [details]
Created attachment 466752 [details]
Created attachment 466754 [details, diff]
@maintainers: is this patch OK with you?
Was this reported upstream? The patch seems quite upstreamable to me.
Sorry it looks like it was here:
I'd like to see some upstream ACK on it, or dig into it a bit later. I've CCed gnome team on the upstream bug to get notified when something moves there.
Judging from this commit we have to wait for a next release:
Created attachment 494294 [details, diff]
Could you test this patch, it is a backport of the one that landed in 3.25.1.