From e2b7b635c28915d59cb3c1b47f8e79401e1e6c46 Mon Sep 17 00:00:00 2001 From: Anton Kolesov Date: Fri, 6 Jun 2014 12:58:45 +0400 Subject: [PATCH] arc: Honor DESTDIR in custom Makefile Installing native binutils in Buildroot faile, because `prefix` is /usr, and proper installation path on host is achieved via usage of DESTDIR variable. Homegrown ARC Makefile was ignoring this variable and therefour it was trying to install files into /usr/extlib, when doing native binutils build. This patch teaches our Makefile to honor DESTDIR. Signed-off-by: Anton Kolesov --- gas/ChangeLog.ARC | 4 ++++ gas/config/extlib/Makefile.in | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog.ARC b/gas/ChangeLog.ARC index 42a386f..80aedb5 100644 --- a/gas/ChangeLog.ARC +++ b/gas/ChangeLog.ARC @@ -1,3 +1,7 @@ +2014-06-06 Anton Kolesov + + * config/extlib/Makefile.in: Honor DESTDIR. + 2014-03-20 Claudiu Zissulescu * config/tc-arc.c (arc_extoper): Allow negative value when diff --git a/gas/config/extlib/Makefile.in b/gas/config/extlib/Makefile.in index 75e6a82..35232ea 100644 --- a/gas/config/extlib/Makefile.in +++ b/gas/config/extlib/Makefile.in @@ -1,8 +1,8 @@ all: -install @srcdir@/*.s . install: - install -d @prefix@/extlib - install @srcdir@/*.s @prefix@/extlib + install -d $(DESTDIR)@prefix@/extlib + install @srcdir@/*.s $(DESTDIR)@prefix@/extlib check: clean: -- 1.8.4.1