Page 1 of 1

How to change the compile flags in a package?

Posted: Mon Jun 01, 2009 11:37 pm
by Spulit
Hi,

How can I change the flags for compilation (CFLAGS) for a specific package? For example, I would want to compile VLC with -O3 and other parameters. How do I change the GAR Makefile?

Thanks

Re: How to change the compile flags in a package?

Posted: Mon Jun 01, 2009 11:43 pm
by Pablo
After the 'include ../../../gar.mk" line, you can modify any of the environment variables. If you look at the package devel/glibc, then you will see and example removed -ffast-math from CFLAGS, makes sure that CFLAGS is using -O3 (first removing any existing -O option) and forces PARALLELMFLAGS to -j1. You may need to change CXXFLAGS as well.

Re: How to change the compile flags in a package?

Posted: Tue Jun 02, 2009 9:52 am
by Spulit
Thanks, I'll try that!