[issue34960] python-config bad ldflags on macOS

2018-10-11 Thread Simon Wells
Simon Wells added the comment: ah ok, sorry i wasn't clear at first, the issue isn't when building python its when building a library which depends on python in this case libxml2, which when given the --enable-python stuff uses "PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`" and

[issue34960] python-config bad ldflags on macOS

2018-10-11 Thread Ned Deily
Ned Deily added the comment: Oh, you didn't mention --enable-shared! But still it's not clear to me what problem your last results shows. The value of python3-config --ldflags looks fine (ignore the repeated -framework CoreFoundation). Are you still getting the "ld: -stack_size option

[issue34960] python-config bad ldflags on macOS

2018-10-11 Thread Simon Wells
Simon Wells added the comment: with a fresh 3.7.0 download ./configure --prefix=... --enable-shared make -j5 make install path/to/python3-config --ldflags -lpython3.7m -ldl -framework CoreFoundation -Wl,-stack_size,100 -framework CoreFoundation --

[issue34960] python-config bad ldflags on macOS

2018-10-11 Thread Ned Deily
Ned Deily added the comment: Sorry, I can't reproduce that behavior. What's more, that LINKFORSHARED value does not appear to be correct. Have you tried doing a build from a clean build dicectory while rerunning ./configure? What does your ./configure look like and do have any relevant

[issue34960] python-config bad ldflags on macOS

2018-10-11 Thread Simon Wells
New submission from Simon Wells : if you didn't build python as a framework it adds sysconfig.get_config_vars('LINKFORSHARED') when you run 'python-config --ldflags' this resolves to >>> sysconfig.get_config_var('LINKFORSHARED') '-Wl,-stack_size,100 -framework CoreFoundation