pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/gcc8



Module Name:    pkgsrc
Committed By:   abs
Date:           Sun Oct 28 22:21:04 UTC 2018

Modified Files:
        pkgsrc/lang/gcc8: Makefile distinfo
Added Files:
        pkgsrc/lang/gcc8/patches: patch-libgcc_Makefile.in

Log Message:
Add -fPIC to CRTSTUFF_CFLAGS to fix --enable-pie when building firefox

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87221

With this gcc8 can build a working firefox on NetBSD-8/amd64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/gcc8/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gcc8/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/gcc8/patches/patch-libgcc_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/gcc8/Makefile
diff -u pkgsrc/lang/gcc8/Makefile:1.5 pkgsrc/lang/gcc8/Makefile:1.6
--- pkgsrc/lang/gcc8/Makefile:1.5       Thu Oct 18 15:11:59 2018
+++ pkgsrc/lang/gcc8/Makefile   Sun Oct 28 22:21:04 2018
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2018/10/18 15:11:59 jperkin Exp $
+# $NetBSD: Makefile,v 1.6 2018/10/28 22:21:04 abs Exp $
 
 GCC_PKGNAME=           gcc8
 .include               "version.mk"
 
 DISTNAME=      gcc-${GCC8_DIST_VERSION}
 PKGNAME=       ${GCC_PKGNAME}-${GCC8_DIST_VERSION}
+PKGREVISION=   1
 ## When bumping the PKGREVISION of this package the PKGREVISION of
 ## lang/gcc8-libs needs to be bump to be at least 1 more than the
 ## PKGREVISION of this package!

Index: pkgsrc/lang/gcc8/distinfo
diff -u pkgsrc/lang/gcc8/distinfo:1.3 pkgsrc/lang/gcc8/distinfo:1.4
--- pkgsrc/lang/gcc8/distinfo:1.3       Sat Sep 15 03:06:15 2018
+++ pkgsrc/lang/gcc8/distinfo   Sun Oct 28 22:21:04 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/09/15 03:06:15 ryoon Exp $
+$NetBSD: distinfo,v 1.4 2018/10/28 22:21:04 abs Exp $
 
 SHA1 (gcc-8.2.0.tar.xz) = 19926bdb6c4b58891015929853d41aeff019d400
 RMD160 (gcc-8.2.0.tar.xz) = 4fba19867980d04bed1e62d46d4787c99f4fd13d
@@ -22,6 +22,7 @@ SHA1 (patch-gcc_targhooks.c) = b28d8a969
 SHA1 (patch-isl_configure) = 36b37778ee13c0b364fb24d5864d6a9e65b29b7d
 SHA1 (patch-libffi_configure) = bcfbfe8abddc378e2de4a39ad0669583b37e0292
 SHA1 (patch-libffi_testsuite_libffi.call_float2.c) = 6321dde308579448c27c2b6e1e30633699dd145f
+SHA1 (patch-libgcc_Makefile.in) = 0fc931e41c86b3d402eb3f3a569284195f4ce025
 SHA1 (patch-libgcc_config.host) = bdd4cd27249c8b62793204428d95c977d58f06fb
 SHA1 (patch-libgcc_crtstuff.c) = e3a3b02a26229992851f195b5701cb1b86c29efe
 SHA1 (patch-libgfortran_io_io.h) = d44676239a7f45e42054d24bd5224f43c20055c0

Added files:

Index: pkgsrc/lang/gcc8/patches/patch-libgcc_Makefile.in
diff -u /dev/null pkgsrc/lang/gcc8/patches/patch-libgcc_Makefile.in:1.1
--- /dev/null   Sun Oct 28 22:21:04 2018
+++ pkgsrc/lang/gcc8/patches/patch-libgcc_Makefile.in   Sun Oct 28 22:21:04 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-libgcc_Makefile.in,v 1.1 2018/10/28 22:21:04 abs Exp $
+
+Add -fPIC to CRTSTUFF_CFLAGS
+
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87221
+
+--- libgcc/Makefile.in.orig    2018-01-03 10:03:58.000000000 +0000
++++ libgcc/Makefile.in
+@@ -296,7 +296,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF
+ CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
+   $(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \
+   -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
+-  -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
++  -fbuilding-libgcc -fPIC -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
+   $(INHIBIT_LIBC_CFLAGS)
+ 
+ # Extra flags to use when compiling crt{begin,end}.o.



Home | Main Index | Thread Index | Old Index