diff options
author | Bernhard Walle <bernhard@bwalle.de> | 2015-05-02 14:42:41 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-05-03 21:18:06 +0200 |
commit | ead356e66a3ad118db77cb49da39b0b7c232550d (patch) | |
tree | eb996fea54bf4dc0d2f707defbefd3fddc375357 /rules/host-mtd-utils.make | |
parent | 2f04a3587bd33c74ccc9be6e115a8b1fde620841 (diff) | |
download | ptxdist-ead356e66a3ad118db77cb49da39b0b7c232550d.tar.gz ptxdist-ead356e66a3ad118db77cb49da39b0b7c232550d.tar.xz |
host-mtd-utils: Fix build with gcc 5.1
The build of host-mtd-utils fails with link errors:
| ..../mkfs.ubifs/hashtable/hashtable_itr.o:
| In function `hashtable_iterator_key':
| ..../mkfs.ubifs/hashtable/hashtable_itr.c:43:
| multiple definition of `hashtable_iterator_key'
| ..../mkfs.ubifs/devtable.o:.../mkfs.ubifs/hashtable/hashtable_itr.h:34:
| first defined here
| ..../mkfs.ubifs/hashtable/hashtable_itr.o:
| In function `hashtable_iterator_key':
| ..../mkfs.ubifs/hashtable/hashtable_itr.c:43:
| multiple definition of `hashtable_iterator_value'
| ..../mkfs.ubifs/devtable.o:..../mkfs.ubifs/devtable.c:64:
| first defined here
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_MTD_UTILS_CFLAGS to add -fgnu89-inline]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-mtd-utils.make')
-rw-r--r-- | rules/host-mtd-utils.make | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/host-mtd-utils.make b/rules/host-mtd-utils.make index 64a0468b0..327f2a2e7 100644 --- a/rules/host-mtd-utils.make +++ b/rules/host-mtd-utils.make @@ -33,4 +33,6 @@ HOST_MTD_UTILS_MAKEVARS = \ BUILDDIR=$(HOST_MTD_UTILS_DIR) \ DESTDIR=$(HOST_MTD_UTILS_PKGDIR) +HOST_MTD_UTILS_CFLAGS := -fgnu89-inline + # vim: syntax=make |