Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 186164 Details for
Bug 263683
sys-libs/glibc-2.8_p20080602: -Wa,-f breaks build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Eclass from my local overlay to make the ebuild work.
flag-o-matic-as.eclass (text/plain), 1.87 KB, created by
Steve Buzonas
on 2009-03-25 02:38:57 UTC
(
hide
)
Description:
Eclass from my local overlay to make the ebuild work.
Filename:
MIME Type:
Creator:
Steve Buzonas
Created:
2009-03-25 02:38:57 UTC
Size:
1.87 KB
patch
obsolete
># @ECLASS: flag-o-matic-as.eclass ># @BLURB: functions to manipulate and query as flags ># @DESCRIPTION: ># This eclass contains functions to compliment the ># flag-o-matic eclass by adding functions to manipulate ># the ASFLAGS variable. > >inherit flag-o-matic > ># @FUNCTION: is-asflagq ># @USAGE: <flag> ># @DESCRIPTION: ># Returns shell true if <flag> is in ASFLAGS, else returns shell false. Accepts shell globs. >is-asflagq() { > [[ -n $2 ]] && die "Usage: is-asflag <flag>" > _is_flagq ASFLAGS $1 >} > ># @FUNCTION: is-asflag ># @USAGE: <flag> ># @DESCRIPTION: ># Echo's "true" if flag is set in ASFLAGS. Accepts shell globs. >is-asflag() { > is-asflagq "$@" && echo true >} > ># @FUNCTION: filter-asflags ># @USAGE: <flags> ># @DESCRIPTION: ># Remove particular <flags> from ASFLAGS. Accepts shell globs. >filter-asflags() { > _filter-var ASFLAGS "$@" > return 0 >} > ># @FUNCTION: raw-asflags ># @USAGE: <flags> ># @DESCRIPTION: ># Turn C style asflags (-Wa,-foo) into straight asflags - the results ># are suitable for passing directly to 'as'; note ASFLAGS is usually passed ># to gcc where it needs the '-Wa,'. >raw-asflags() { > local x input="$@" > [[ -z ${input} ]] && input=${ASFLAGS} > set -- > for x in ${input} ; do > x=${x#-Wa,} > set -- "$@" ${x//,/ } > done > echo "$@" >} > ># Some tests for when we screw with things and want to make ># sure we didn't break anything >TESTS() { > CFLAGS="-a -b -c=1" > CXXFLAGS="-x -y -z=2" > LDFLAGS="-l -m -n=3" > ASFLAGS="-p -q -r=3" > > die() { exit 1; } > (is-flag 1 2 3) && die > (is-ldflag 1 2 3) && die > (is-asflag 1 2 3) && die > > is-flagq -l && die > is-asflagq -a && die > is-flagq -a || die > is-flagq -x || die > is-ldflagq -n=* || die > is-ldflagq -n && die > is-asflagq -r=* || die > is-asflagq -r && die > > strip-unsupported-flags > [[ ${CFLAGS} == "-c=1" ]] || die > [[ ${CXXFLAGS} == "-y -z=2" ]] || die > > filter-asflags -q || die > [[ ${ASFLAGS} == "-p -r=3" ]] || die > > echo "All tests pass" >} >#TESTS
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 Raw
Actions:
View
Attachments on
bug 263683
: 186164 |
186166