koobs added the comment:

@doko, as per the original report by Joel, the issue is:

* Reproducible with --enable-shared (most downstream OS's / packages use this)

Additionally:

* in the python script, not the shell script (by default used by < 3.4)
* Is reproducible in all branches (including default)

See the following test matrix from 'default'

========================================================================
./configure && make
========================================================================

LD_LIBRARY_PATH=. ./python python-config.py --ldflags
-L/usr/local/lib/python3.5/config-3.5m -lpython3.5m -lutil -lm 
-Wl,--export-dynamic

 sh python-config --ldflags
-LNONE/lib/python3.5/config-3.5m -L/mnt/home/user/repos/lib -lpython3.5m  
-lutil -lm  -Wl,--export-dynamic

    ^--- hmm .. "NONE" ... what?
    
========================================================================
./configure --prefix=/usr/local && make
========================================================================

LD_LIBRARY_PATH=. ./python python-config.py --ldflags
-L/usr/local/lib/python3.5/config-3.5m -lpython3.5m -lutil -lm 
-Wl,--export-dynamic

sh python-config --ldflags
-L/mnt/home/user/repos/lib/python3.5/config-3.5m -L/mnt/home/user/repos/lib 
-lpython3.5m  -lutil -lm  -Wl,--export-dynamic

========================================================================
./configure --enable-shared && make
========================================================================

LD_LIBRARY_PATH=. ./python python-config.py --ldflags
-lpython3.5m -lutil -lm -Wl,--export-dynamic

sh python-config --ldflags
 -L/mnt/home/user/repos/lib -lpython3.5m  -lutil -lm  -Wl,--export-dynamic

========================================================================
./configure --enable-shared --prefix=/usr/local && make
========================================================================

LD_LIBRARY_PATH=. ./python python-config.py --ldflags
-lpython3.5m -lutil -lm -Wl,--export-dynamic

sh python-config --ldflags
 -L/mnt/home/user/repos/lib -lpython3.5m  -lutil -lm  -Wl,--export-dynamic

While I'm here, update versions.

Note: This issue was originally reported for 2.7, 3.2, 3.3

----------
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7352>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to