Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15893 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]
Patch for flag-o-matic eclass adding strip-unsupported-flags
flag-o-matic.eclass.patch (text/plain), 972 bytes, created by
Douglas Russell (RETIRED)
on 2003-08-11 03:08:38 UTC
(
hide
)
Description:
Patch for flag-o-matic eclass adding strip-unsupported-flags
Filename:
MIME Type:
Creator:
Douglas Russell (RETIRED)
Created:
2003-08-11 03:08:38 UTC
Size:
972 bytes
patch
obsolete
>--- flag-o-matic.eclass 2003-08-05 16:57:27.000000000 +0100 >+++ flag-o-matic.eclass.new 2003-08-05 16:53:40.000000000 +0100 >@@ -33,7 +33,9 @@ > # Sets mcpu to v8 and uses the original value > # as mtune if none specified. > # >- >+#### strip-unsupported-flags #### >+# Strip C[XX]FLAGS of any flags not supported by >+# installed version of gcc > > # C[XX]FLAGS that we allow in strip-flags > ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g" >@@ -187,3 +189,24 @@ > done > fi > } >+ >+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}" >+}
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