[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2019-05-31 Thread Ned Deily
Change by Ned Deily : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2017-03-20 Thread Michael Haubenwallner
Changes by Michael Haubenwallner : -- pull_requests: +652 ___ Python tracker ___

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2015-02-12 Thread Tim Smith
Tim Smith added the comment: On Darwin, it would be nice if LINKFORMODULE used -undefined dynamic_lookup instead of explicitly linking to a framework binary. Modules with explicit links to a framework cause segfaults when they are imported from a different, but compatible, framework

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-05 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: For AIX, with both these configure variants: $ configure --prefix=/prefix --enable-shared CC=gcc CXX=g++ OPT= $ configure --prefix=/prefix --enable-shared --without-computed-gotos CC=xlc_r CXX=xlC_r OPT= the output changes like this: $

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-05 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Now for --disable-shared: For AIX, with both these configure variants: $ configure --prefix=/prefix --disable-shared CC=gcc CXX=g++ OPT= $ configure --prefix=/prefix --disable-shared --without-computed-gotos CC=xlc_r CXX=xlC_r OPT= the output

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-05 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Erm, the latter should read: For Linux, with this configure variant: $ configure --prefix=/prefix --disable-shared CC=gcc CXX=g++ Now reading GNU ld manpage for Linux: $ PKG_CONFIG_PATH=/prefix/lib/pkgconfig pkg-config --libs python-3.4 new:

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-04 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: So this diff - depending on issue#21660 - now drops showing any $LIBS from python-config, as python-modules usually do not link against any python-known libraries. Instead, now there is a new configure variable LINKFORMODULE, which is shown by

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- keywords: +patch Added file: http://bugs.python.org/file35485/32143cda4d80.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15590

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15590 ___ ___ Python-bugs-list mailing list

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Michael Haubenwallner: Could you show output of 'python-config-3.5 --ldflags' and 'python-config-3.5 --libs' without and with this patch (on GNU/Linux and AIX)? -- ___ Python tracker

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-03 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Well, they should not be identical, as they are for different use cases. pkg-config python is to build an application containing a python interpreter (like python$EXE): + Link against libpython.so. Additionally, + re-export symbols from libpython.so

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: They are not for different cases. Difference between is a result of the fact that they were implemented independently at different times. Linking of extension modules against libpythonX.Y.so is a good idea anyway. It avoids build failure

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-03 Thread Matthias Klose
Matthias Klose added the comment: they are. assume you build the zlib and elementtree extensions as builtins, then libs for an interpreter includes libz and libexpat, while they are not needed for extensions. -- ___ Python tracker

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2014-06-02 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15590 ___

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2012-08-08 Thread Matthias Klose
New submission from Matthias Klose: seen with at least 2.7, 3.2 and 3.3: $ python-config --libs -lpthread -ldl -lutil -lm -lpython2.7 $ pkg-config python --static --libs -lpthread -ldl -lutil -lpython2.7 python-config uses the SYSLIBS macro, while pkg-config uses the LIBS macro. depending on

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2012-08-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Behavior of 'pkg-config python' is more useful since without --static option only the set of directly needed libraries is returned. In Python 3.3 or 3.4 --static option could be introduced in python-config and behavior without this option