elfutils: put all the "lfs mode" stuff together
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Fri, 17 Jun 2016 14:48:31 +0000 (15:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 18 Jun 2016 12:59:48 +0000 (14:59 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/elfutils/elfutils.mk

index 074ca029c8fcb1166e17f31c2bfdd8c4be4c52f5..a2012d6abc3f03148ee9586e502cd8bfc0ea8146 100644 (file)
@@ -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)