From bcc8d367140d00f76aba6ef4387a12469fa0c024 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Fri, 17 Jun 2016 15:48:31 +0100 Subject: [PATCH] elfutils: put all the "lfs mode" stuff together Signed-off-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- package/elfutils/elfutils.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index 074ca029c8..a2012d6abc 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -16,17 +16,18 @@ ELFUTILS_DEPENDENCIES = zlib ELFUTILS_AUTORECONF = YES ELFUTILS_CONF_OPTS += --disable-werror -ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) - # 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="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" + CPPFLAGS="$(ELFUTILS_CPPFLAGS)" ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) -- 2.30.2