summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-prebuilts.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-prebuilts.sh b/build-prebuilts.sh
index d652076..ab6174b 100755
--- a/build-prebuilts.sh
+++ b/build-prebuilts.sh
@@ -45,6 +45,7 @@ EOF
SOONG_LIBRARIES=(
libcrypto-host.so
+ libelf.so
)
binaries="${SOONG_BINARIES[@]/#/${SOONG_HOST_OUT}/bin/}"
@@ -63,6 +64,15 @@ EOF
mkdir -p ${include_dir}/openssl/
cp -a ${TOP}/external/boringssl/include/openssl/* ${include_dir}/openssl/
+ # The elfutils header locations are messy; just make them match
+ # common Linux distributions, as this is what Linux expects
+ mkdir -p ${include_dir}/elfutils
+ cp -a ${TOP}/external/elfutils/libelf/gelf.h ${include_dir}/
+ cp -a ${TOP}/external/elfutils/libelf/libelf.h ${include_dir}/
+ cp -a ${TOP}/external/elfutils/libelf/nlist.h ${include_dir}/
+ cp -a ${TOP}/external/elfutils/libelf/elf-knowledge.h ${include_dir}/elfutils/
+ cp -a ${TOP}/external/elfutils/version.h ${include_dir}/elfutils/
+
# Patch dist dir
(
cd ${SOONG_OUT}/dist/