summaryrefslogtreecommitdiffstats
path: root/rules/host-localedef.make
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2015-05-02 14:42:40 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-05-03 21:18:06 +0200
commit2f04a3587bd33c74ccc9be6e115a8b1fde620841 (patch)
tree49b307c33653413736969beef696cb29a32e05e3 /rules/host-localedef.make
parent55d09fbaa78c988670f7ba5d2d1e194d59de9ff3 (diff)
downloadptxdist-2f04a3587bd33c74ccc9be6e115a8b1fde620841.tar.gz
ptxdist-2f04a3587bd33c74ccc9be6e115a8b1fde620841.tar.xz
host-localedef: Fix build with gcc 5.1
The build of host-localedef fails with lots of argp-related link errors: | argp-help.o: In function `indent_to': | argp-help.c:(.text+0x1335): undefined reference to `argp_fmtstream_point' | argp-help.c:(.text+0x1352): undefined reference to `argp_fmtstream_putc' | argp-help.o: In function `space': | argp-help.c:(.text+0x137d): undefined reference to `argp_fmtstream_point' | argp-help.c:(.text+0x13a5): undefined reference to `argp_fmtstream_putc' | argp-help.c:(.text+0x13b8): undefined reference to `argp_fmtstream_putc' | argp-help.o: In function `print_header': | argp-help.c:(.text+0x1549): undefined reference to `argp_fmtstream_putc' | argp-help.c:(.text+0x157f): undefined reference to `argp_fmtstream_set_lmargin' | argp-help.c:(.text+0x159b): undefined reference to `argp_fmtstream_set_wmargin' | argp-help.c:(.text+0x15b2): undefined reference to `argp_fmtstream_puts' | argp-help.c:(.text+0x15c7): undefined reference to `argp_fmtstream_set_lmargin' | argp-help.c:(.text+0x15dc): undefined reference to `argp_fmtstream_putc' | argp-help.o: In function `comma': | argp-help.c:(.text+0x167f): undefined reference to `argp_fmtstream_putc' | argp-help.c:(.text+0x171e): undefined reference to `argp_fmtstream_set_wmargin' | [...] The problem is the change of the default C standard from gnu89 to gnu11 which changes the semantics of 'inline'. The issue is described in the Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the '-fgnu89-inline' option fixes the issue. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> [mol: use HOST_LOCALEDEF_CFLAGS to add -fgnu89-inline] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-localedef.make')
-rw-r--r--rules/host-localedef.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/host-localedef.make b/rules/host-localedef.make
index f3ccb8733..6aa86b66b 100644
--- a/rules/host-localedef.make
+++ b/rules/host-localedef.make
@@ -39,6 +39,8 @@ HOST_LOCALEDEF_AUTOCONF := \
--with-glibc=./eglibc \
--prefix=/usr
+HOST_LOCALEDEF_CFLAGS := -fgnu89-inline
+
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------