Patch to allow the 'optimize' build parameter to be used to patch arbitrary CXXFLAGS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Won't Fix
|
Low
|
Albert Santoni |
Bug Description
This patch allows the 'optimize' parameter to be a string as well as an integer. If it's a string, the string will be passed on as CXXFLAGS. This is useful for distributions which have standard build parameters that are required to be used for all packages (I wrote the patch for the Mandriva package).
You might want to take a different approach to this - add a new parameter, for instance - but the essence of the patch would be a good thing to have.
I also noticed while writing this patch that passing optimize=0 is not optimally handled in the Linux case. It will print "Optimizations enabled..." (as 0 is an integer) but not actually enable any optimizations. I did not address this in my patch, but it's something you might want to fix.
Will push this into trunk later, patch looks good and should be handy for package maintainers. Thanks for the patch!