This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author koobs
Recipients brobecke, doko, eric.araujo, koobs, loewis, mauger, tarek, vstinner
Date 2015-04-03.01:58:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428026287.13.0.309844509362.issue7352@psf.upfronthosting.co.za>
In-reply-to
Content
@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
History
Date User Action Args
2015-04-03 01:58:07koobssetrecipients: + koobs, loewis, doko, vstinner, tarek, eric.araujo, mauger, brobecke
2015-04-03 01:58:07koobssetmessageid: <1428026287.13.0.309844509362.issue7352@psf.upfronthosting.co.za>
2015-04-03 01:58:07koobslinkissue7352 messages
2015-04-03 01:58:05koobscreate