summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2004-01-21 23:28:22 +0000
committerGuy Martin <gmsoft@gentoo.org>2004-01-21 23:28:22 +0000
commit0afe4afd67f7ac7208ccedef8fa0688ad104676a (patch)
tree5fa7634c6655e408b047bdec0081a25470458cbf /eclass/kde.eclass
parentSmall bugfix (Manifest recommit) (diff)
downloadgentoo-2-0afe4afd67f7ac7208ccedef8fa0688ad104676a.tar.gz
gentoo-2-0afe4afd67f7ac7208ccedef8fa0688ad104676a.tar.bz2
gentoo-2-0afe4afd67f7ac7208ccedef8fa0688ad104676a.zip
Added flags -ffunction-sections for kde on hppa.
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r--eclass/kde.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 1fd0fe7b7e31..5b45a6924af9 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.86 2004/01/05 03:24:34 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.87 2004/01/21 23:28:22 gmsoft Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -115,7 +115,12 @@ kde_src_compile() {
cd $S
./configure ${myconf} || die "died running ./configure, $FUNCNAME:configure"
-
+ # Seems ./configure add -O2 by default but hppa don't want that but we need -ffunction-sections
+ if [ "${ARCH}" = "hppa" ]
+ then
+ einfo Fixating Makefiles
+ find ${S} -name Makefile | while read a; do sed -e s/-O2/-ffunction-sections/ -i "${a}" ; done
+ fi
;;
make)
export PATH="${KDEDIR}/bin:${PATH}"