From 6e3fcf99ebc67b4d9c392eed6da532051b9c2bb9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 8 Oct 2004 21:07:31 +0000 Subject: [PATCH] make sure build uses $TARGET_CFLAGS and the install works --- make/util-linux.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/make/util-linux.mk b/make/util-linux.mk index a12a7f01f2..8343520e9b 100644 --- a/make/util-linux.mk +++ b/make/util-linux.mk @@ -26,6 +26,7 @@ $(UTIL-LINUX_DIR)/.unpacked: $(DL_DIR)/$(UTIL-LINUX_SOURCE) $(DL_DIR)/$(UTIL-LIN $(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked (cd $(UTIL-LINUX_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --prefix=/usr \ @@ -47,10 +48,15 @@ $(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked touch $(UTIL-LINUX_DIR)/.configured $(UTIL-LINUX_BINARY): $(UTIL-LINUX_DIR)/.configured - $(MAKE) ARCH=$(ARCH) CC=$(TARGET_CC) -C $(UTIL-LINUX_DIR) + $(MAKE) \ + -C $(UTIL-LINUX_DIR) \ + ARCH=$(ARCH) \ + CC=$(TARGET_CC) \ + OPT="$(TARGET_CFLAGS)" \ + HAVE_SLANG="NO" $(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY) - $(MAKE) DESTDIR=$(TARGET_DIR) USE_TTY_GROUP=no -C $(UTIL-LINUX_DIR) install + $(MAKE) ARCH=$(ARCH) DESTDIR=$(TARGET_DIR) USE_TTY_GROUP=no -C $(UTIL-LINUX_DIR) install rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \ $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc -- 2.30.2