diff options
Diffstat (limited to 'lang/gcc5/patches/patch-gcc_Makefile.in')
-rw-r--r-- | lang/gcc5/patches/patch-gcc_Makefile.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/gcc5/patches/patch-gcc_Makefile.in b/lang/gcc5/patches/patch-gcc_Makefile.in new file mode 100644 index 00000000000..c76a7e4301d --- /dev/null +++ b/lang/gcc5/patches/patch-gcc_Makefile.in @@ -0,0 +1,15 @@ +$NetBSD: patch-gcc_Makefile.in,v 1.1 2015/07/16 12:03:36 ryoon Exp $ + +Add gcc libdir to a programs rpath so that _this gcc's_ support libraries +are found. + +--- gcc/Makefile.in.orig 2013-03-05 09:46:34.000000000 +0000 ++++ gcc/Makefile.in +@@ -2027,6 +2027,7 @@ prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_ + # Language-independent files. + + DRIVER_DEFINES = \ ++ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG) $(prefix)/@GCC_TARGET_MACHINE@/lib/%M $(LINKER_RPATH_FLAG) $(libdir)/%M \"" \ + -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \ + -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \ + -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \ |