Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42190 Details for
Bug 59709
ghc-6.2.1-r1.ebuild: -fno-stack-protector option breaks PPC compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ghc-6.2.2.ebuild (new)
ghc-6.2.2.patch (text/plain), 1.43 KB, created by
Andres Loeh (RETIRED)
on 2004-10-19 10:39:45 UTC
(
hide
)
Description:
patch for ghc-6.2.2.ebuild (new)
Filename:
MIME Type:
Creator:
Andres Loeh (RETIRED)
Created:
2004-10-19 10:39:45 UTC
Size:
1.43 KB
patch
obsolete
>--- ghc-6.2.2.ebuild.orig 2004-10-19 13:34:37.000000000 +0200 >+++ ghc-6.2.2.ebuild 2004-10-19 15:27:34.000000000 +0200 >@@ -61,20 +61,16 @@ > SUPPORTED_CFLAGS="" > > # Setup supported CFLAGS. >-setup_cflag() { >+check_cflags() { > OLD_CFLAGS="${CFLAGS}" >- CFLAGS="${CFLAGS} $1" >+ CFLAGS="$1" > strip-unsupported-flags >- >- if [ "${OLD_CFLAGS}" != "${CFLAGS}" ]; >- then >- SUPPORTED_CFLAGS="$1 ${SUPPORTED_CFLAGS}" >- fi >+ SUPPORTED_CFLAGS="${SUPPORTED_CFLAGS} ${CFLAGS}" >+ CFLAGS="${OLD_CFLAGS}" > } > > setup_cflags() { >- setup_cflag "-fno-pic" >- setup_cflag "-fno-stack-protector" >+ check_cflags "-nopie -fno-stack-protector -fno-stack-protector-all" > } > > src_unpack() { >@@ -86,9 +82,10 @@ > cd ${S}/ghc > pushd driver > setup_cflags >+ > epatch ${FILESDIR}/${PN}-6.2.hardened.patch >- sed -i -e "s|@GHC_CFLAGS@|${SUPPORTED_CFLAGS//-f/-optc-f}|" ghc/ghc.sh >- sed -i -e "s|@GHC_CFLAGS@|${SUPPORTED_CFLAGS//-f/-optc-f}|" ghci/ghci.sh >+ sed -i -e "s|@GHC_CFLAGS@|${SUPPORTED_CFLAGS// -/ -optc-}|" ghc/ghc.sh >+ sed -i -e "s|@GHC_CFLAGS@|${SUPPORTED_CFLAGS// -/ -optc-}|" ghci/ghci.sh > popd > } > >@@ -105,7 +102,7 @@ > # patch included) > setup_cflags > echo "SRC_CC_OPTS+=${SUPPORTED_CFLAGS}" >> mk/build.mk >- echo "SRC_HC_OPTS+=${SUPPORTED_CFLAGS//-f/-optc-f}" >> mk/build.mk >+ echo "SRC_HC_OPTS+=${SUPPORTED_CFLAGS// -/ -optc-}" >> mk/build.mk > > # force the config variable ArSupportsInput to be unset; > # ar in binutils >= 2.14.90.0.8-r1 seems to be classified
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 59709
:
37004
|
37005
|
40366
|
40402
|
40403
|
42158
| 42190