From: Peter Korsgaard Date: Thu, 5 Mar 2009 16:42:14 +0000 (-0000) Subject: logrotate: fix build with external toolchain X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=802011ae1f19c3ad17a20a558c20c1ec47286933;p=buildroot.git logrotate: fix build with external toolchain --- diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk index 8c8cc7c419..f0fae032c2 100644 --- a/package/logrotate/logrotate.mk +++ b/package/logrotate/logrotate.mk @@ -10,11 +10,11 @@ $(DL_DIR)/$(LOGROTATE_SOURCE): $(LOGROTATE_DIR)/.source: $(DL_DIR)/$(LOGROTATE_SOURCE) $(ZCAT) $(DL_DIR)/$(LOGROTATE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(LOGROTATE_DIR) package/logrotate/ *.patch + toolchain/patch-kernel.sh $(LOGROTATE_DIR) package/logrotate/ *.patch touch $@ $(LOGROTATE_DIR)/$(LOGROTATE_BINARY): $(LOGROTATE_DIR)/.source - $(MAKE) CC=$(TARGET_CC) -C $(LOGROTATE_DIR) + $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS)" -C $(LOGROTATE_DIR) $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY) $(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install