[NumPy-Tickets] [NumPy] #1521: scipy-0.7.2/0.8 mixes CFLAGS and CXXFLAGS (was: scipy-0.7.2-r1 mixes CFLAGS and CXXFLAGS)
NumPy Trac
numpy-tickets@scipy....
Tue Aug 3 06:33:02 CDT 2010
#1521: scipy-0.7.2/0.8 mixes CFLAGS and CXXFLAGS
-----------------------------+----------------------------------------------
Reporter: killua.eu | Owner: cdavid
Type: defect | Status: needs_review
Priority: normal | Milestone: 2.0.0
Component: numpy.distutils | Version:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by jlec):
* cc: jlec (added)
* status: needs_info => needs_review
Comment:
The build of scipy doesn't respect CFLAGS and CXXFLAGS variable, but mixes
them. This is what I have set:
CXXFLAGS="-O2 -pipe -march=core2 -frecord-gcc-switches -mssse3 -mcx16
-mmmx -g -Wmissing-include-dirs -Wenum-compare"
CFLAGS="-O2 -pipe -march=core2 -frecord-gcc-switches -mssse3 -mcx16 -mmmx
-g -Wimplicit-function-declaration -Wmissing-include-dirs"
where
-Wmissing-include-dirs is only valid for C/C++
-Wimplicit-function-declaration only for C
-Wenum-compare only for C++
which gives you following warnings during compile if Flags aren't
respected
cc1plus: warning: command line option "-Wimplicit-function-declaration" is
valid for C/ObjC but not for C++
numpy-1.4.1
scipy-0.8/0.72 (gives same)
gcc-4.4.4
I will attach the build.log as well as a summary on the system.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1521#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list