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
commitbf0b93485cea28d854675f92956cd62d9c7dabfd (patch)
tree005d6f569837a98edf953094971a39d101f67881 /eclass/kde.eclass
parentSmall bugfix (diff)
downloadhistorical-bf0b93485cea28d854675f92956cd62d9c7dabfd.tar.gz
historical-bf0b93485cea28d854675f92956cd62d9c7dabfd.tar.bz2
historical-bf0b93485cea28d854675f92956cd62d9c7dabfd.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}"