aboutsummaryrefslogtreecommitdiff
path: root/package/infozip
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@openwide.fr>2015-01-24 16:23:44 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-05 22:49:27 +0100
commit6a919e0a4328e3208aa3ef88a5b1ecc2257974bb (patch)
tree81539e2b09ad7650bc8c8391c9c5e2fd524556bc /package/infozip
parent3046df45728e2f84adcc50e14469099d9e52ce64 (diff)
downloadbuildroot-6a919e0a4328e3208aa3ef88a5b1ecc2257974bb.tar.gz
buildroot-6a919e0a4328e3208aa3ef88a5b1ecc2257974bb.tar.bz2
package/infozip: silent LFS warning
infozip already defines _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE in some sources files when LARGE_FILE_SUPPORT is set. Remove them from CFLAGS. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/infozip')
-rw-r--r--package/infozip/infozip.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk
index 3e8058fa6a..e57f7e16d0 100644
--- a/package/infozip/infozip.mk
+++ b/package/infozip/infozip.mk
@@ -21,9 +21,14 @@ INFOZIP_CFLAGS = -I. -DUNIX
# removed since it can't work for cross-compilation.
INFOZIP_CFLAGS += -DUIDGID_NOT_16BIT
+# infozip already defines _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE when
+# necessary, redefining it on the command line causes some warnings.
+INFOZIP_TARGET_CFLAGS = \
+ $(filter-out -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS))
+
define INFOZIP_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
- CFLAGS="$(TARGET_CFLAGS) $(INFOZIP_CFLAGS)" \
+ CFLAGS="$(INFOZIP_TARGET_CFLAGS) $(INFOZIP_CFLAGS)" \
AS="$(TARGET_CC) -c" \
-f unix/Makefile generic
endef