how to change compiler flags for a specific package
Hi,
I have a question about buildroot. I need to compile a specific package with different compiler flags than the default. By default -Os is used in my buildroot setup, but as this triggers a compiler bug when compiling flac, I would like to change this to -O2 for the flac package (which uses Makefile.autotools.in). What is the best way to do that?
Sven
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sven" == Sven Neumann <[email protected]> writes:
Sven> Hi,
Sven> I have a question about buildroot. I need to compile a specific package Sven> with different compiler flags than the default. By default -Os is used Sven> in my buildroot setup, but as this triggers a compiler bug when Sven> compiling flac, I would like to change this to -O2 for the flac package Sven> (which uses Makefile.autotools.in). What is the best way to do that?
For what arch, and what goes wrong exactly?
You can probably put your alternative CFLAGS in FLAC_MAKE_ENV or FLAC_MAKE_OPT to get the package to use it.
Signature · 1 line
Bye, Peter Korsgaard
Hi,
Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sven" == Sven Neumann <[email protected]> writes:
Sven> Hi,
Sven> I have a question about buildroot. I need to compile a specific package Sven> with different compiler flags than the default. By default -Os is used Sven> in my buildroot setup, but as this triggers a compiler bug when Sven> compiling flac, I would like to change this to -O2 for the flac package Sven> (which uses Makefile.autotools.in). What is the best way to do that?For what arch, and what goes wrong exactly?
Details can be found in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39076
Quoted 2 lines
You can probably put your alternative CFLAGS in
FLAC_MAKE_ENVorFLAC_MAKE_OPTto get the package to use it.
I'll try that. Thanks.
Sven
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sven" == Sven Neumann <[email protected]> writes:
For what arch, and what goes wrong exactly?
Sven> Details can be found in
Sven> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39076
Thanks.
Signature · 1 line
Bye, Peter Korsgaard