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

Mailing List Archive: Python: Bugs

[issue3290] python-config --cflags includes irrelevant flags

 

 

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


report at bugs

Jul 5, 2008, 12:09 PM

Post #1 of 4 (130 views)
Permalink
[issue3290] python-config --cflags includes irrelevant flags

New submission from Sacha Varma <sacha-python[at]ssl.co.uk>:

As I understand it, python-config --cflags is intended to yield the C
compiler flags needed to compile a program that uses Python headers and
libraries (as opposed to the C flags needed to compile python itself).

However, it seems to include irrelevant options such as -Wall and -O3,
which interfere with the build (for example, by enabling optimisation in
a debug build):

$ python-config --cflags
-I/opt/Python-2.5.1/include/python2.5
-I/opt/Python-2.5.1/include/python2.5 -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes

----------
components: Build
messages: 69289
nosy: sacha
severity: normal
status: open
title: python-config --cflags includes irrelevant flags
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3290>
_______________________________________
_______________________________________________
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

Jul 5, 2008, 1:10 PM

Post #2 of 4 (126 views)
Permalink
[issue3290] python-config --cflags includes irrelevant flags [In reply to]

Martin v. Löwis <martin[at]v.loewis.de> added the comment:

Georg, what do you think?

----------
assignee: -> georg.brandl
nosy: +georg.brandl, loewis

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3290>
_______________________________________
_______________________________________________
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

Jul 5, 2008, 11:19 PM

Post #3 of 4 (120 views)
Permalink
[issue3290] python-config --cflags includes irrelevant flags [In reply to]

Georg Brandl <georg[at]python.org> added the comment:

I think you're right.

However, Martin, what flags except -I can/must we keep?

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3290>
_______________________________________
_______________________________________________
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

Jul 5, 2008, 11:43 PM

Post #4 of 4 (120 views)
Permalink
[issue3290] python-config --cflags includes irrelevant flags [In reply to]

Martin v. Löwis <martin[at]v.loewis.de> added the comment:

Some flags for the compiler are really needed to compile the Python
headers correctly, e.g. -fno-strict-aliasing in 2.6.

So I think an explicit list of options reported would have to be
maintained, either as a blacklist (e.g. -O<n>, -Wall), or as a white list.

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3290>
_______________________________________
_______________________________________________
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 lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.