summaryrefslogtreecommitdiff
path: root/lang/gcc3/patches
diff options
context:
space:
mode:
authorwiz <wiz>2003-05-22 09:37:27 +0000
committerwiz <wiz>2003-05-22 09:37:27 +0000
commit75146f60fcf945eca8863d68436bc813fad02513 (patch)
tree9f6d1b6f39deab3d2de9127bfb258a73e8062d75 /lang/gcc3/patches
parent63e524d53c8b4282b2aa2e46a714eb4e478b1c3b (diff)
downloadpkgsrc-75146f60fcf945eca8863d68436bc813fad02513.tar.gz
Add patch from Todd Vierling in PR 21226:
The following method overrides "libgcc_link_spec" in the generated specs file, which gives you a compiler that automatically inserts the correct rpath argument at link time. This should work for any pkgsrc target platform, as no platform-specific config overrides it. Additionally, part of this fix changes the "scrubbed" LDFLAGS by overriding that in CONFIGURE_ENV, rather than globally. Other changes to the pkgsrc Makefile (including one I plan to submit for threads support) may need access to the "real" LDFLAGS, so overriding it wholesale in the pkg Makefile is Bad. Bump version to 3.2.2nb2.
Diffstat (limited to 'lang/gcc3/patches')
-rw-r--r--lang/gcc3/patches/patch-ab12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/gcc3/patches/patch-ab b/lang/gcc3/patches/patch-ab
new file mode 100644
index 00000000000..8e273eb3f17
--- /dev/null
+++ b/lang/gcc3/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2003/05/22 09:37:28 wiz Exp $
+
+--- gcc/Makefile.in.orig Fri Apr 18 08:36:04 2003
++++ gcc/Makefile.in
+@@ -1236,6 +1236,7 @@ c-semantics.o : c-semantics.c $(CONFIG_H
+ # Language-independent files.
+
+ DRIVER_DEFINES = \
++ -DLINK_LIBGCC_SPEC="\"%D $(RPATH_FLAG)$(GCC_PREFIX)/lib\"" \
+ -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
+ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
+ -DDEFAULT_TARGET_VERSION=\"$(version)\" \