From: Vicente Olivert Riera Date: Sat, 18 Jun 2016 16:43:26 +0000 (+0100) Subject: elfutils: do not override ELFUTILS_CFLAGS variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78448744f2ea14a89179032a1ae9561f61933277;p=buildroot.git elfutils: do not override ELFUTILS_CFLAGS variable Signed-off-by: Vicente Olivert Riera [Thomas: fixup ordering of assignments.] Signed-off-by: Thomas Petazzoni --- diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index a2012d6abc..b999d0f9cd 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -16,15 +16,15 @@ ELFUTILS_DEPENDENCIES = zlib ELFUTILS_AUTORECONF = YES ELFUTILS_CONF_OPTS += --disable-werror +# elfutils gets confused when lfs mode is forced, so don't +ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) +ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS)) + # sparc64 needs -fPIC instead of -fpic ifeq ($(BR2_sparc64),y) ELFUTILS_CFLAGS += -fPIC endif -# elfutils gets confused when lfs mode is forced, so don't -ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) -ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS)) - ELFUTILS_CONF_ENV += \ CFLAGS="$(ELFUTILS_CFLAGS)" \ CPPFLAGS="$(ELFUTILS_CPPFLAGS)"