From 78448744f2ea14a89179032a1ae9561f61933277 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Sat, 18 Jun 2016 17:43:26 +0100 Subject: [PATCH] elfutils: do not override ELFUTILS_CFLAGS variable Signed-off-by: Vicente Olivert Riera [Thomas: fixup ordering of assignments.] Signed-off-by: Thomas Petazzoni --- package/elfutils/elfutils.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)" -- 2.30.2