From 1336112a08f2709a156ee23fe2cc512ef01060fe Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 19 Feb 2024 19:00:09 +0000 Subject: [PATCH] Disable glibc check as new builds require more modern glibc --- genbindings.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/genbindings.sh b/genbindings.sh index 57ed3278..f57b2887 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -321,17 +321,17 @@ else $COMPILE $LINK -o liblightningjni_release$LDK_TARGET_SUFFIX.so -O3 -I"$1"/lightning-c-bindings/include/ $2 bindings.o $LDK_LIB -lm [ "$IS_APPLE_CLANG" != "true" ] && llvm-strip liblightningjni_release$LDK_TARGET_SUFFIX.so if [ "$IS_MAC" = "false" -a "$4" = "false" ]; then - GLIBC_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep GLIBC_ | grep -v "GLIBC_2\.2\." | grep -v "GLIBC_2\.3\(\.\| \)" | grep -v "GLIBC_2.\(14\|17\) " || echo)" - if [ "$GLIBC_SYMBS" != "" ]; then - echo "Unexpected glibc version dependency! Some users need glibc 2.17 support, symbols for newer glibcs cannot be included." - echo "$GLIBC_SYMBS" - exit 1 - fi - REALLOC_ARRAY_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep reallocarray || echo)" - if [ "$REALLOC_ARRAY_SYMBS" != "" ]; then - echo "Unexpected reallocarray dependency!" - exit 1 - fi + #GLIBC_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep GLIBC_ | grep -v "GLIBC_2\.2\." | grep -v "GLIBC_2\.3\(\.\| \)" | grep -v "GLIBC_2.\(14\|17\) " || echo)" + #if [ "$GLIBC_SYMBS" != "" ]; then + # echo "Unexpected glibc version dependency! Some users need glibc 2.17 support, symbols for newer glibcs cannot be included." + # echo "$GLIBC_SYMBS" + # exit 1 + #fi + #REALLOC_ARRAY_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep reallocarray || echo)" + #if [ "$REALLOC_ARRAY_SYMBS" != "" ]; then + # echo "Unexpected reallocarray dependency!" + # exit 1 + #fi fi if [ "$LDK_JAR_TARGET" = "true" ]; then # Copy to JNI native directory for inclusion in JARs -- 2.30.2