Files
Arch-R/packages/linux/patches/default/linux-900-fix-libelf-detection.patch
MilhouseVH a84b6e0cb3 elfutils: install shared libelf libs on host build
And fix libelf detection

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-08-13 22:46:50 +01:00

17 lines
460 B
Diff

diff --git a/Makefile b/Makefile
index c9132594860b..9551c8bc5e91 100644
--- a/Makefile
+++ b/Makefile
@@ -933,7 +933,7 @@ export mod_sign_cmd
ifdef CONFIG_STACK_VALIDATION
has_libelf := $(call try-run,\
- echo "int main() {}" | $(HOSTCC) -xc -o /dev/null -lelf -,1,0)
+ echo "int main() {}" | $(HOSTCC) $(HOSTCFLAGS) -xc -o /dev/null $(HOSTLDFLAGS) -lelf -,1,0)
ifeq ($(has_libelf),1)
objtool_target := tools/objtool FORCE
else
--
2.11.0