classification
Title: configure shouldn't set a default OPT
Type: behavior Stage:
Components: Build Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, barry, dmalcolm, eric.araujo, laca, pitrou
Priority: normal Keywords:

Created on 2010-12-09 19:25 by pitrou, last changed 2011-05-07 15:18 by eric.araujo.

Messages (2)
msg123695 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-12-09 19:25
The configure.in sets a default OPT of "-O" if none was set by the user, but I think that's wrong. The user could simply pass optimization flags as part of CFLAGS instead, and then the contents of OPT could conflict with that of CFLAGS (which is annoying to debug when you don't know what is happening exactly).

Besides, "-O" is hardly an useful default value for any compiler. I would advocate trimming down the magic and letting OPT empty/undefined if that's what the user asks for (and expects). What do you think?
msg135468 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-05-07 15:18
Sounds reasonable.
History
Date User Action Args
2011-05-07 15:18:28eric.araujosetmessages: + msg135468
2010-12-19 23:41:08eric.araujosetnosy: + eric.araujo
2010-12-11 18:20:07Arfreversetnosy: + Arfrever
2010-12-09 19:25:28pitroucreate