$NetBSD: patch-ac,v 1.3 2012/04/17 08:24:54 wiz Exp $ Add gcc libdir to a programs rpath so that _this gcc's_ support libraries are found. --- 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/\" \