- use global DISABLE_LARGEFILE
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Dec 2006 10:36:40 +0000 (10:36 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Dec 2006 10:36:40 +0000 (10:36 -0000)
package/argus/argus.mk
package/berkeleydb/berkeleydb.mk
package/gzip/gzip.mk
package/lzma/lzma.mk

index 757adc28f59de1e714df02ed3a4abd0e104f23ca..991fc3eccf11edcb053c1077267ff20d445cfbbc 100644 (file)
@@ -12,11 +12,6 @@ ARGUS_CAT:=$(ZCAT)
 ARGUS_BINARY:=bin/argus
 ARGUS_TARGET_BINARY:=usr/sbin/argus
 
-ARGUS_CONFIG_OPTS:=
-ifneq ($(strip $(BR2_LARGEFILE)),y)
-ARGUS_CONFIG_OPTS += --disable-largefile
-endif
-
 ARGUS_TRAP_CHECK=ac_cv_lbl_unaligned_fail=yes
 ifeq ($(BR2_i386),y)
 ARGUS_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
@@ -63,7 +58,7 @@ $(ARGUS_DIR)/.configured: $(ARGUS_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
-               $(ARGUS_CONFIG_OPTS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch $(ARGUS_DIR)/.configured
 
index d4c19a5fd3e3ffb0ac469a14fdf82b47279dfc97..c20d2bca3ef42e5bca997c2a1bc2135444d1ff9a 100644 (file)
@@ -10,10 +10,6 @@ DB_SOURCE:=db-$(DB_VER).NC.tar.gz
 DB_DIR:=$(BUILD_DIR)/db-$(DB_VER).NC
 DB_SHARLIB:=libdb-$(DB_SO_VER).so
 
-ifneq ($(BR2_LARGEFILE),y)
-DB_LARGEFILE="--disable-largefile"
-endif
-
 $(DL_DIR)/$(DB_SOURCE):
        $(WGET) -P $(DL_DIR) $(DB_SITE)/$(DB_SOURCE)
 
@@ -48,7 +44,7 @@ $(DB_DIR)/.configured: $(DB_DIR)/.dist
                --disable-tcl \
                --disable-compat185 \
                --with-pic \
-                $(DB_LARGEFILE) \
+                $(DISABLE_LARGEFILE) \
        );
        $(SED) 's/\.lo/.o/g' $(DB_DIR)/build_unix/Makefile
        touch $(DB_DIR)/.configured
index 2de03989da5f93b2c0febda5b4248ec07f4ba897..712dad790a455c85ec877f79de872c679d132d5c 100644 (file)
@@ -12,10 +12,6 @@ GZIP_CAT:=$(ZCAT)
 GZIP_BINARY:=$(GZIP_DIR)/gzip
 GZIP_TARGET_BINARY:=$(TARGET_DIR)/bin/zmore
 
-ifneq ($(BR2_LARGEFILE),y)
-GZIP_LARGEFILE="--disable-largefile"
-endif
-
 $(DL_DIR)/$(GZIP_SOURCE):
         $(WGET) -P $(DL_DIR) $(GZIP_SITE)/$(GZIP_SOURCE)
 
@@ -44,7 +40,7 @@ $(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
-               $(GZIP_LARGEFILE) \
+               $(DISABLE_LARGEFILE) \
        );
        touch $(GZIP_DIR)/.configured
 
index 0c40e88177b322b7fe57217f0bc7755aece984bb..0fd3432520b13588188927bc067f9663dafdfd91 100644 (file)
@@ -12,9 +12,7 @@ LZMA_TARGET_DIR:=$(BUILD_DIR)/lzma-$(LZMA_VER)
 LZMA_CFLAGS:=$(TARGET_CFLAGS)
 ifeq ($(BR2_LARGEFILE),y)
 LZMA_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-LZMA_LARGEFILE="--enable-largefile"
 else
-LZMA_LARGEFILE="--disable-largefile"
 endif
 
 $(DL_DIR)/$(LZMA_SOURCE):
@@ -75,7 +73,7 @@ $(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.source
                --includedir=$(TARGET_DIR)/include \
                --disable-debug \
                $(DISABLE_NLS) \
-               $(LZMA_LARGEFILE) \
+               $(DISABLE_LARGEFILE) \
        );
        touch $(LZMA_TARGET_DIR)/.configured;