aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-05-17 11:50:21 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-05-17 13:20:31 +0200
commitd5996197e2e28ca8d35776012ee7e08b8301de5c (patch)
tree5b98257db2c3a89339107256feca1f53b557b0ea
parent8989bfc8a6b88b56d7942a95d6e7517075ed8ffc (diff)
downloadbuildroot-d5996197e2e28ca8d35776012ee7e08b8301de5c.tar.gz
buildroot-d5996197e2e28ca8d35776012ee7e08b8301de5c.tar.bz2
gpm: fix build on Microblaze due to ELF check
Fixes: http://autobuild.buildroot.org/results/19d/19d93324caac8b4aad7abfe7b6c3d85612636368/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/gpm/gpm.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/gpm/gpm.mk b/package/gpm/gpm.mk
index 477c54a55e..d37b4edcc3 100644
--- a/package/gpm/gpm.mk
+++ b/package/gpm/gpm.mk
@@ -17,6 +17,14 @@ GPM_DEPENDENCIES = host-bison
# built. CPPFLAGS is used to pass the right include path to dependency rules.
GPM_CONF_ENV = CPPFLAGS="$(TARGET_CPPFLAGS) -I$(@D)/src/headers/"
+# For some reason, Microblaze gcc does not define __ELF__, which gpm
+# configure script uses to determine whether the architecture uses ELF
+# binaries and therefore can build shared libraries. We fix this by
+# telling GPM that ELF is used on Microblaze.
+ifeq ($(BR2_microblaze),y)
+GPM_CONF_ENV += itz_cv_sys_elf=yes
+endif
+
# gpm and ncurses have a circular dependency. As gpm function GPM_Wgetch()
# (requiring ncurses) is not recommended for use by ncurses people themselves
# and as it's better to have gpm support in ncurses that the contrary, we force