CFLAGS tuning for alpha
authorBjoern Brauel <bjb@gentoo.org>
Thu, 17 Oct 2002 16:34:48 +0000 (16:34 +0000)
committerBjoern Brauel <bjb@gentoo.org>
Thu, 17 Oct 2002 16:34:48 +0000 (16:34 +0000)
dev-lang/python/python-2.2.1-r5.ebuild
sys-devel/perl/perl-5.6.1-r7.ebuild

index b9846ab1ff8d9ff25993fec652e3e61bc9897e1b..55a07eb30350cbd2f7f9295561aab8a6ef11d360 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.2.1-r5.ebuild,v 1.4 2002/10/15 19:50:14 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.2.1-r5.ebuild,v 1.5 2002/10/17 16:34:48 bjb Exp $
 
 IUSE="readline tcltk berkdb bootstrap"
 
@@ -41,6 +41,11 @@ src_unpack() {
 
 src_compile() {
         filter-flags -malign-double
+
+       if [ "${ARCH}" = "alpha" ]; then
+               CFLAGS="${CFLAGS} -fPIC"
+               CXXFLAGS="${CXXFLAGS} -fPIC"
+       fi
        export OPT="$CFLAGS"
 
        # adjust makefile to install pydoc into ${D} correctly
index e090eb133285d7d10bccc269fa5bdf3eaa2aa99b..0f00fff8917c04c2fde1f67d57f66fd699b182b5 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/perl/perl-5.6.1-r7.ebuild,v 1.4 2002/10/13 11:57:04 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/perl/perl-5.6.1-r7.ebuild,v 1.5 2002/10/17 16:34:48 bjb Exp $
 
 IUSE="berkdb gdbm"
 
@@ -10,7 +10,7 @@ SRC_URI="ftp://ftp.perl.org/pub/CPAN/src/${P}.tar.gz"
 HOMEPAGE="http://www.perl.org"
 LICENSE="Artistic GPL-2"
 SLOT="0"
-KEYWORDS="x86 ppc sparc sparc64"
+KEYWORDS="x86 ppc sparc sparc64 alpha"
 
 RDEPEND="gdbm? ( >=sys-libs/gdbm-1.8.0 )
        berkdb? ( >=sys-libs/db-3.2.3h-r3
@@ -21,6 +21,11 @@ DEPEND="sys-apps/groff
 
 src_compile() {
 
+    if [ "${ARCH}" = "alpha" ]; then
+        CFLAGS="${CFLAGS} -fPIC"
+        CXXFLAGS="${CXXFLAGS} -fPIC"
+    fi  
+
     local myconf
     if [ "`use gdbm`" ]
     then