summaryrefslogtreecommitdiffstats
path: root/make/libtool.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/libtool.mk
parent8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff)
downloadbuildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.tar.gz
buildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.zip
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/libtool.mk')
-rw-r--r--make/libtool.mk18
1 files changed, 14 insertions, 4 deletions
diff --git a/make/libtool.mk b/make/libtool.mk
index ca2702d86..0d1ac56dd 100644
--- a/make/libtool.mk
+++ b/make/libtool.mk
@@ -20,11 +20,21 @@ $(LIBTOOL_DIR)/.unpacked: $(DL_DIR)/$(LIBTOOL_SOURCE)
touch $(LIBTOOL_DIR)/.unpacked
$(LIBTOOL_DIR)/.configured: $(LIBTOOL_DIR)/.unpacked
- (cd $(LIBTOOL_DIR); rm -f config.cache; CC=$(TARGET_CC1) \
- CFLAGS=-D_POSIX_SOURCE ./configure \
- --target=i386-uclibc \
+ (cd $(LIBTOOL_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 $(LIBTOOL_DIR)/.configured
@@ -54,7 +64,7 @@ libtool: uclibc $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY)
libtool-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC1) -C $(LIBTOOL_DIR) uninstall
- -make -C $(LIBTOOL_DIR) clean
+ -$(MAKE) -C $(LIBTOOL_DIR) clean
libtool-dirclean:
rm -rf $(LIBTOOL_DIR)