pkgsrc/lang/gcc/patches/patch-av
hubertf 3b6a62ce6b Make this pkg work on NetBSD/sparc.
Patches contributes by Michael Rauch <mrauch@fs.tum.de> in PR 12299
2001-02-28 23:28:08 +00:00

14 lines
465 B
Text

$NetBSD: patch-av,v 1.1 2001/02/28 23:28:09 hubertf Exp $
--- ../gcc-2.95.2/gcc/config/sparc/t-netbsd.orig Tue Feb 27 14:37:27 2001
+++ ../gcc-2.95.2/gcc/config/sparc/t-netbsd
@@ -0,0 +1,9 @@
+# We have to include libgcc.a also in shared libraries, so
+# let's compile the code position independent
+
+TARGET_LIBGCC2_CFLAGS = -fPIC
+
+# Same for crtbeginS.o and crtendS.o . All code that goes into a shared
+# library has to be PIC
+
+CRTSTUFF_T_CFLAGS_S = -fPIC