View previous topic :: View next topic |
Author |
Message |
gtsquirrel Tux's lil' helper
Joined: 21 Nov 2002 Posts: 85 Location: San Jose, CA
|
Posted: Mon Jun 02, 2003 8:36 pm Post subject: Checking for specific options in CFLAGS/CXXFLAGS |
|
|
Assuming I have an ebuild that cannot be compiled with any -O options (-O, -O2, -O3, ...), how can I have the ebuild check the CFLAGS variable for that specific flag and either error/die or remove that specific flag and continue? |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Jun 02, 2003 9:21 pm Post subject: Re: Checking for specific options in CFLAGS/CXXFLAGS |
|
|
gtsquirrel wrote: | Assuming I have an ebuild that cannot be compiled with any -O options (-O, -O2, -O3, ...), how can I have the ebuild check the CFLAGS variable for that specific flag and either error/die or remove that specific flag and continue? | check out the OpenOffice.org ebuild. especialy the following part: Code: | inherit flag-o-matic eutils
# Compile problems with these ...
filter-flags "-funroll-loops"
filter-flags "-fomit-frame-pointer"
replace-flags "-O3" "-O2"
ALLOWED_FLAGS="-O -O1 -O2 -Os -mcpu -march -pipe"
strip-flags |
cheers
SteveB |
|
Back to top |
|
|
gtsquirrel Tux's lil' helper
Joined: 21 Nov 2002 Posts: 85 Location: San Jose, CA
|
Posted: Tue Jun 03, 2003 3:39 am Post subject: awesome! |
|
|
Rock on! Thanks a bunch for that! |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Tue Jun 03, 2003 6:57 am Post subject: Re: awesome! |
|
|
gtsquirrel wrote: | Rock on! Thanks a bunch for that! | you are wellcome |
|
Back to top |
|
|
|