diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-03 22:04:38 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-11-03 22:10:17 +0100 |
commit | cc0c66510c1a2290804230c90765bc0d8281dd7e (patch) | |
tree | 40a117603d172a32e086411d9d9a3d169011e5d5 /package/elfutils | |
parent | 24bfce0ebc18e6ed7dda868250455a3566c0c116 (diff) |
elfutils: fix sparc64 build, -fPIC required
Fixes following autobuild errors:
http://autobuild.buildroot.net/results/82cc7766d2c805146e94baf82a24d1002f56593d/
http://autobuild.buildroot.net/results/ca4ca362581ee0111cba389d1afbff287692c21b/
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/elfutils')
-rw-r--r-- | package/elfutils/elfutils.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index 838c3b881..d96ef4120 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -16,9 +16,16 @@ ELFUTILS_PATCH = elfutils-portability-0.161.patch 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_CONF_ENV += \ - CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \ + CFLAGS="$(ELFUTILS_CFLAGS)" \ CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) |