2013-04-21 11:04:09 +02:00
|
|
|
$NetBSD: patch-gcc_Makefile.in,v 1.2 2013/04/21 09:04:10 sbd Exp $
|
2013-04-01 23:06:15 +02:00
|
|
|
|
|
|
|
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 = \
|
2013-04-21 11:04:09 +02:00
|
|
|
+ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(prefix)/@GCC_TARGET_MACHINE@/lib/%M $(LINKER_RPATH_FLAG)$(libdir)/%M \"" \
|
2013-04-01 23:06:15 +02:00
|
|
|
-DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
|
|
|
|
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
|
|
|
|
-DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
|