summaryrefslogtreecommitdiffstats
path: root/rules/libelf.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-09-30 11:38:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-10-01 11:11:41 +0200
commit9403f6955e59f6518e151dad48bd58d951c70875 (patch)
tree83087ce5ff2dc8454f2e056aa92374b5971b9410 /rules/libelf.make
parentc8d153e41e937459f757614b0ffe5719225eedc7 (diff)
downloadptxdist-9403f6955e59f6518e151dad48bd58d951c70875.tar.gz
ptxdist-9403f6955e59f6518e151dad48bd58d951c70875.tar.xz
libelf: fix building with gcc-7.x and icecc
Icecc splits preprocessing and compiling. As a result comments are no longer available at compile time and building fails with: elf_cntl.c: In function 'elf_cntl': elf_cntl.c:59:10: error: this statement may fall through [-Werror=implicit-fallthrough=] Compile with '-C' to preserve comments. This can have side effects, so it cannot be enabled globally. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libelf.make')
-rw-r--r--rules/libelf.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/libelf.make b/rules/libelf.make
index 17d96ae67..1fc5f78c6 100644
--- a/rules/libelf.make
+++ b/rules/libelf.make
@@ -59,6 +59,10 @@ ifdef PTXCONF_ARCH_ARM64
LIBELF_ARCH := aarch64
endif
+ifdef PTXDIST_ICECC
+LIBELF_CFLAGS := -C
+endif
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------