From 2a555efd8a11fcd092548d2b5f3a83ca1a7b1a58 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 4 Nov 2009 15:05:55 +0000 Subject: Respect CFLAGS also when linking executables, not just for libperl (Portage version: 2.1.6.13/cvs/Linux x86_64) --- dev-lang/perl/ChangeLog | 6 +++++- dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) (limited to 'dev-lang') diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog index 2638bdce6b5b..62bfa80d5c2c 100644 --- a/dev-lang/perl/ChangeLog +++ b/dev-lang/perl/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/perl # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.293 2009/11/04 12:39:15 haubi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.294 2009/11/04 15:05:54 haubi Exp $ + + 04 Nov 2009; Michael Haubenwallner + files/perl-5.8.8-ccld-cflags.patch: + Respect CFLAGS also when linking executables, not just for libperl 04 Nov 2009; Michael Haubenwallner perl-5.8.8-r6.ebuild, +files/perl-5.8.8-ccld-cflags.patch: diff --git a/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch index d1fcbb4a2315..85f66fe2c99c 100644 --- a/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch +++ b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch @@ -9,3 +9,25 @@ else echo "I'll use ld to build dynamic libraries." dflt='ld' +--- Makefile.SH.orig 2009-11-04 15:34:22.643322823 +0100 ++++ Makefile.SH 2009-11-04 15:34:30.110147884 +0100 +@@ -201,7 +201,7 @@ + LD = $ld + + LDFLAGS = $ldflags +-CLDFLAGS = $ldflags ++CLDFLAGS = \$(OPTIMIZE) $ldflags + + mallocsrc = $mallocsrc + mallocobj = $mallocobj +--- x2p/Makefile.SH.orig 2009-11-04 15:54:14.146759212 +0100 ++++ x2p/Makefile.SH 2009-11-04 15:54:19.963253154 +0100 +@@ -107,7 +107,7 @@ + $(REALPERL) -I../lib ../utils/perlcc -I .. -L .. $(plextract) -v -log ../compilelog; + + a2p$(EXE_EXT): $(obj) a2p$(OBJ_EXT) +- $(CC) -o a2p $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) ++ $(CC) -o a2p $(OPTIMIZE) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) + + # I now supply a2p.c with the kits, so the following section is + # used only if you force byacc to run by saying -- cgit v1.2.3-65-gdbad