From bf0b93485cea28d854675f92956cd62d9c7dabfd Mon Sep 17 00:00:00 2001 From: Guy Martin Date: Wed, 21 Jan 2004 23:28:22 +0000 Subject: Added flags -ffunction-sections for kde on hppa. --- eclass/kde.eclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'eclass/kde.eclass') 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 # @@ -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}" -- cgit v1.2.3-65-gdbad