elfutils: do not override ELFUTILS_CFLAGS variable
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Sat, 18 Jun 2016 16:43:26 +0000 (17:43 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 19 Jun 2016 08:56:25 +0000 (10:56 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
[Thomas: fixup ordering of assignments.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/elfutils/elfutils.mk

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