Ticket #12890 (new enhancement)
Setup general CFLAGS
|Reported by:||jdemeyer||Owned by:||GeorgSWeber|
The current way how Sage handles CFLAGS is quite bad. There are several issues:
- Too many spkg-install files are trying to do clever stuff to determine CFLAGS. This should be done just once instead of in every spkg. This would imply we don't need to handle SAGE64 and SAGE_DEBUG in every spkg.
- Sometimes, the spkg determines CFLAGS which result in a failed build, for example when the gcc issues instructions which the assembler doesn't know about.
- Some packages don't do anything clever and just build with simple, suboptimal CFLAGS.
My impression is that MPIR is very good at determining the right CFLAGS. So we should not try to reinvent the wheel, just take MPIR's CFLAGS.