25 lines
800 B
Text
25 lines
800 B
Text
$NetBSD: patch-aa,v 1.1 2010/02/08 05:18:37 dholland Exp $
|
|
|
|
DESTDIR support
|
|
|
|
--- ../binutils-2.12.1/Makefile.in.orig 2002-05-14 23:46:29.000000000 +0000
|
|
+++ ../binutils-2.12.1/Makefile.in
|
|
@@ -360,6 +360,7 @@ BASE_FLAGS_TO_PASS = \
|
|
"CXXFLAGS=$(CXXFLAGS)" \
|
|
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
|
|
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
|
|
+ "DESTDIR=$(DESTDIR)" \
|
|
"DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
|
|
"INSTALL=$(INSTALL)" \
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
@@ -1832,7 +1833,9 @@ MAKEDIRS= \
|
|
$(exec_prefix)
|
|
.PHONY: installdirs
|
|
installdirs: mkinstalldirs
|
|
- $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
|
|
+ for dir in $(MAKEDIRS); do \
|
|
+ $(SHELL) $(srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
|
|
+ done
|
|
|
|
dir.info: do-install-info
|
|
if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
|