Skip to contentSkip to conversation

how to change compiler flags for a specific package

Buildroot Sven Neumann 2 participants 4 messages Feb 3, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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
#2 lore raw

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_ENV or FLAC_MAKE_OPT to get the package to use it.

I'll try that. Thanks.

Sven