Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20036 Details for
Bug 26390
Add strip-unsupported-flags function to flag-o-matic eutils
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated to reflect other changes in flag-o-matic
flag-o-matic.eclass.patch (text/plain), 908 bytes, created by
Douglas Russell (RETIRED)
on 2003-10-31 14:30:23 UTC
(
hide
)
Description:
Updated to reflect other changes in flag-o-matic
Filename:
MIME Type:
Creator:
Douglas Russell (RETIRED)
Created:
2003-10-31 14:30:23 UTC
Size:
908 bytes
patch
obsolete
>--- flag-o-matic.eclass 2003-10-31 22:26:28.000000000 +0000 >+++ flag-o-matic.eclass.puggy 2003-10-31 22:24:03.000000000 +0000 >@@ -26,6 +26,10 @@ > # Strip C[XX]FLAGS of everything except known > # good options. > # >+#### strip-unsupported-flags #### >+# Strip C[XX]FLAGS of any flags not supported by >+# installed version of gcc >+# > #### get-flag <flag> #### > # Find and echo the value for a particular flag > # >@@ -178,6 +182,27 @@ > export CXXFLAGS="${NEW_CXXFLAGS}" > } > >+test_flag () { >+ if gcc -S -xc $1 -o /dev/null /dev/null >/dev/null 2>&1; then >+ echo "$1" >+ fi >+} >+ >+strip-unsupported-flags() { >+ for x in ${CFLAGS} >+ do >+ NEW_CFLAGS=${NEW_CFLAGS}" ""`test_flag ${x}`" >+ done >+ >+ for x in ${CXXFLAGS} >+ do >+ NEW_CXXFLAGS=${NEW_CXXFLAGS}" ""`test_flag ${x}`" >+ done >+ >+ CFLAGS="${NEW_CFLAGS}" >+ CXXFLAGS="${NEW_CXXFLAGS}" >+} >+ > get-flag() { > local findflag="$1" > for f in ${CFLAGS} ${CXXFLAGS} ; do
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26390
:
15893
| 20036