Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 8, 2012, 3:43 AM

Post #1 of 2 (35 views)
Permalink
[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

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 what you want to do, both can be wrong or right:

- to build an extension, LIBS should be used.

- to link an embedded interpreter, SYSLIBS should be used,
which might not be complete.
Howver in this case MODLIBS is missing.

a patch should be easy once we can define the intended behaviour.

----------
components: Build
keywords: needs review
messages: 167683
nosy: doko
priority: normal
severity: normal
status: open
title: --libs is inconsistent for python-config --libs and pkgconfig python --libs
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15590>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 8, 2012, 4:11 AM

Post #2 of 2 (38 views)
Permalink
[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs [In reply to]

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 could be changed to match 'pkg-config python'.

----------
nosy: +Arfrever

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15590>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.