Marc-Andre Lemburg <m...@egenix.com> added the comment: Matthias Klose wrote: > > Matthias Klose <d...@debian.org> added the comment: > > my understanding is that the builder is allowed to overwrite OPT, but not > BASECFLAGS.
The builder should actually be allowed to override the complete CFLAGS and LDFLAGS settings, but for historic reasons, this is currently not possible and you're right: OPT was meant to be overridden by the user and BASECFLAGS is reserved for configure use. Since just adding the CFLAGS to the linker invokation breaks on various platforms (the linker doesn't expect compiler flags or complains due to duplicate flags), this simple route will not work. I suppose the best way to do this is by adding an extra check to configure.in that tests whether the new GCC 4.5 option is supported and also check whether CFLAGS can be passed to the linker. If this test succeed, the configure script could then add CFLAGS to the linker invokations or perhaps merge CFLAGS into LDFLAGS. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com