summaryrefslogtreecommitdiffstats
path: root/make/coreutils.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-17 08:03:59 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-17 08:03:59 +0000
commitef7784a62d2ecd681b37aee7040e71bbb34a51cd (patch)
tree92daacce553b174393de87921912ada04a4ecb6e /make/coreutils.mk
parent8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff)
downloadbuildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.tar.gz
buildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.zip
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/coreutils.mk')
-rw-r--r--make/coreutils.mk21
1 files changed, 16 insertions, 5 deletions
diff --git a/make/coreutils.mk b/make/coreutils.mk
index aac13bdc3..86b84e4c7 100644
--- a/make/coreutils.mk
+++ b/make/coreutils.mk
@@ -22,10 +22,21 @@ $(COREUTILS_DIR)/.unpacked: $(DL_DIR)/$(COREUTILS_SOURCE)
touch $(COREUTILS_DIR)/.unpacked
$(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
- (cd $(COREUTILS_DIR); rm -f config.cache; CC=$(TARGET_CC1) \
- CFLAGS=-D_POSIX_SOURCE ./configure --prefix=/usr \
- --target=$(ARCH)-linux --host=$(ARCH)-linux \
- --disable-nls --mandir=/junk --infodir=/junk \
+ (cd $(COREUTILS_DIR); rm -rf config.cache; \
+ PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --disable-nls \
);
touch $(COREUTILS_DIR)/.configured
@@ -48,7 +59,7 @@ coreutils: uclibc $(TARGET_DIR)/$(COREUTILS_TARGET_BINARY)
coreutils-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC1) -C $(COREUTILS_DIR) uninstall
- -make -C $(COREUTILS_DIR) clean
+ -$(MAKE) -C $(COREUTILS_DIR) clean
coreutils-dirclean:
rm -rf $(COREUTILS_DIR)