summaryrefslogtreecommitdiff
path: root/lang/gcc47/patches/patch-gcc_Makefile.in
blob: d041db18434a1eda4f402a838acf8e5a50d698b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-gcc_Makefile.in,v 1.3 2012/11/16 01:03:54 joerg Exp $

Add gcc libdir to a programs rpath so that _this gcc's_ support librarys
are found.

NOTE: the %M spec string is added by patch-gcc_gcc.c

--- gcc/Makefile.in.orig	2012-03-07 10:59:56.000000000 +0000
+++ gcc/Makefile.in
@@ -2074,6 +2074,7 @@ prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_
 # Language-independent files.
 
 DRIVER_DEFINES = \
+  -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG) $(libdir)/%M $(LINKER_RPATH_FLAG) $(prefix)/$(target_noncanonical)/lib/%M \"" \
   -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
   -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \