From 75146f60fcf945eca8863d68436bc813fad02513 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 22 May 2003 09:37:27 +0000 Subject: 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. --- lang/gcc3/patches/patch-ab | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lang/gcc3/patches/patch-ab (limited to 'lang/gcc3/patches') 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)\" \ -- cgit v1.2.3