pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc34 Fix PR pkg/46029
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c6119091085
branches: trunk
changeset: 602254:7c6119091085
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sun Apr 08 20:45:15 2012 +0000
description:
Fix PR pkg/46029
* Make gcc handle -fPIC properly.
from http://gcc.gnu.org/viewcvs/branches/csl-sol210-3_4-branch/gcc/config/sol2.h?r1=87927&r2=87928&pathrev=178719
diffstat:
lang/gcc34/Makefile | 4 ++--
lang/gcc34/distinfo | 3 ++-
lang/gcc34/patches/patch-gcc_config_sol2.h | 19 +++++++++++++++++++
3 files changed, 23 insertions(+), 3 deletions(-)
diffs (52 lines):
diff -r 737a4fa53307 -r 7c6119091085 lang/gcc34/Makefile
--- a/lang/gcc34/Makefile Sun Apr 08 20:27:54 2012 +0000
+++ b/lang/gcc34/Makefile Sun Apr 08 20:45:15 2012 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.51 2012/03/21 17:08:46 hans Exp $
+# $NetBSD: Makefile,v 1.52 2012/04/08 20:45:15 ryoon Exp $
#
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc34-${GCC_VERSION}
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
EXTRACT_SUFX= .tar.bz2
diff -r 737a4fa53307 -r 7c6119091085 lang/gcc34/distinfo
--- a/lang/gcc34/distinfo Sun Apr 08 20:27:54 2012 +0000
+++ b/lang/gcc34/distinfo Sun Apr 08 20:45:15 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2010/12/23 15:25:16 wiz Exp $
+$NetBSD: distinfo,v 1.23 2012/04/08 20:45:15 ryoon Exp $
SHA1 (gcc-3.4.6.tar.bz2) = 97b290fdc572c8e490b3b39f243e69bacad23c2b
RMD160 (gcc-3.4.6.tar.bz2) = b15003368cedc7964f6ceaee0c39ddc43a46c442
@@ -21,3 +21,4 @@
SHA1 (patch-ca) = e04ff912406505abd015789f288ef09a7e1ae386
SHA1 (patch-cc) = 0af9845a62f9a6f8ec27657d0ae0c16394e9fc12
SHA1 (patch-cd) = a22078951e1369900fcb58a281c75b3a86edd3ea
+SHA1 (patch-gcc_config_sol2.h) = 2c701850bc752e73b2b8c1eb46f123c5c6fa1d93
diff -r 737a4fa53307 -r 7c6119091085 lang/gcc34/patches/patch-gcc_config_sol2.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/patches/patch-gcc_config_sol2.h Sun Apr 08 20:45:15 2012 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-gcc_config_sol2.h,v 1.1 2012/04/08 20:45:15 ryoon Exp $
+
+* Fix lack of __PIC__ and __pic__ in gcc -fPIC
+ http://gcc.gnu.org/viewcvs/branches/csl-sol210-3_4-branch/gcc/config/sol2.h?r1=87927&r2=87928&pathrev=178719
+
+--- gcc/config/sol2.h.orig 2004-07-17 21:18:58.000000000 +0000
++++ gcc/config/sol2.h
+@@ -73,6 +73,11 @@ Boston, MA 02111-1307, USA. */
+ builtin_define ("_LARGEFILE64_SOURCE=1"); \
+ builtin_define ("__EXTENSIONS__"); \
+ } \
++ if (flag_pic) \
++ { \
++ builtin_define ("__PIC__"); \
++ builtin_define ("__pic__"); \
++ } \
+ TARGET_SUB_OS_CPP_BUILTINS(); \
+ } while (0)
+
Home |
Main Index |
Thread Index |
Old Index