From 1fda06ae9891494b5890b287bd6db01b685a8be6 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 30 Mar 2006 00:48:30 +0200 Subject: [PATCH] pass CROSS_COMPILE to AR and RANLIB down to extras/ --- Makefile | 3 ++- extras/volume_id/lib/Makefile | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1b9534c7b..fb7428279 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,6 @@ CC = $(CROSS_COMPILE)gcc LD = $(CROSS_COMPILE)gcc AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib -HOSTCC = gcc CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \ @@ -175,6 +174,8 @@ all: $(PROGRAMS) $(MAN_PAGES) CFLAGS="$(CFLAGS)" \ LD="$(LD)" \ LDFLAGS="$(LDFLAGS)" \ + AR="$(AR)" \ + RANLIB="$(RANLIB)" \ LIB_OBJS="$(LIB_OBJS)" \ LIBUDEV="$(PWD)/$(LIBUDEV)" \ -C $$target $@ || exit 1; \ diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile index f69df5f5c..a0c773550 100644 --- a/extras/volume_id/lib/Makefile +++ b/extras/volume_id/lib/Makefile @@ -54,9 +54,6 @@ HEADERS= \ libvolume_id.h \ util.h -AR = $(CROSS)ar -RANLIB = $(CROSS)ranlib - all: libvolume_id.a $(SHLIB) libvolume_id.pc .PHONY: all .DEFAULT: all -- 2.30.2