summaryrefslogtreecommitdiffstats
path: root/make/links.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/links.mk
parent8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff)
downloadbuildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.tar.gz
buildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.zip
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/links.mk')
-rw-r--r--make/links.mk25
1 files changed, 18 insertions, 7 deletions
diff --git a/make/links.mk b/make/links.mk
index 40c2aee7b..675aea94a 100644
--- a/make/links.mk
+++ b/make/links.mk
@@ -17,22 +17,33 @@ $(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
touch $(LINKS_DIR)/.unpacked
$(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
- (cd $(LINKS_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \
- ./configure --prefix=/usr \
- --libexecdir=/usr/lib --sysconfdir=/etc \
- --localstatedir=/tmp --libdir=/etc \
- --disable-nls);
+ (cd $(LINKS_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 $(LINKS_DIR)/.configured
$(LINKS_DIR)/links: $(LINKS_DIR)/.configured
- make CC=$(TARGET_CC1) -C $(LINKS_DIR)
+ $(MAKE) CC=$(TARGET_CC1) -C $(LINKS_DIR)
$(STRIP) $(LINKS_DIR)/links
$(TARGET_DIR)/usr/bin/links: $(LINKS_DIR)/links
install -c $(LINKS_DIR)/links $(TARGET_DIR)/usr/bin/links
links-clean:
- make -C $(LINKS_DIR) clean
+ $(MAKE) -C $(LINKS_DIR) clean
links-dirclean:
rm -rf $(LINKS_DIR)