diff options
author | Waldemar Brodkorb <w.brodkorb@infodas.de> | 2025-09-22 10:40:32 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-09-22 11:59:54 +0200 |
commit | 9aa46a499ea847b8da6272a507ce64e5914c724e (patch) | |
tree | daeb374286f90758fafaeb3fd935b5063c260b96 | |
parent | 2125fc264cb8e689e15b3c010bc3f743befc7b47 (diff) |
x86_64: check for libelf-dev in prereq
-rwxr-xr-x | scripts/prereq.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 7faee35ae..786d379c6 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -751,6 +751,9 @@ else # scan host-tool prerequisites of certain packages before building. . $topdir/.config + if [ -n "$ADK_TARGET_ARCH_X86_64" ]; then + NEED_LIBELF="$NEED_LIBELF x86_64 arch" + fi if [ -n "$ADK_PACKAGE_FIREFOX" ]; then NEED_RUST="$NEED_RUST firefox" fi @@ -876,6 +879,13 @@ else fi fi + if [ -n "$NEED_LIBELF" ]; then + if ! test -f /usr/include/gelf.h >/dev/null 2>&1; then + printf "You need libelf-dev to build $NEED_LIBELF \n" + out=1 + fi + fi + if [ -n "$NEED_STATIC_LIBSTDCXX" ]; then cat >test.c <<-'EOF' #include <stdio.h> |