mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
18 lines
718 B
Plaintext
18 lines
718 B
Plaintext
$NetBSD: patch-ac,v 1.4 2014/05/15 22:56:02 pho Exp $
|
|
|
|
Add gcc libdir to a programs rpath so that _this gcc's_ support
|
|
libraries are found. Note that there must not be a whitespace between
|
|
$(LINKER_RPATH_FLAG) and the path. Otherwise the flag may be
|
|
misinterpreted by linker (e.g. Apple's ld).
|
|
|
|
--- gcc/Makefile.in.orig 2004-06-17 15:56:58.000000000 -0600
|
|
+++ gcc/Makefile.in
|
|
@@ -1944,6 +1944,7 @@ c-omp.o : c-omp.c $(CONFIG_H) $(SYSTEM_H
|
|
# Language-independent files.
|
|
|
|
DRIVER_DEFINES = \
|
|
+ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(exec_prefix)/lib\"" \
|
|
-DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
|
|
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
|
|
-DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
|