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 there
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 can
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
--
__
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 en
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
/usr/local/