Skip to content

Commit 1336112

Browse files
committed
Disable glibc check as new builds require more modern glibc
1 parent 7d7c8d6 commit 1336112

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

genbindings.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,17 @@ else
321321
$COMPILE $LINK -o liblightningjni_release$LDK_TARGET_SUFFIX.so -O3 -I"$1"/lightning-c-bindings/include/ $2 bindings.o $LDK_LIB -lm
322322
[ "$IS_APPLE_CLANG" != "true" ] && llvm-strip liblightningjni_release$LDK_TARGET_SUFFIX.so
323323
if [ "$IS_MAC" = "false" -a "$4" = "false" ]; then
324-
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)"
325-
if [ "$GLIBC_SYMBS" != "" ]; then
326-
echo "Unexpected glibc version dependency! Some users need glibc 2.17 support, symbols for newer glibcs cannot be included."
327-
echo "$GLIBC_SYMBS"
328-
exit 1
329-
fi
330-
REALLOC_ARRAY_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep reallocarray || echo)"
331-
if [ "$REALLOC_ARRAY_SYMBS" != "" ]; then
332-
echo "Unexpected reallocarray dependency!"
333-
exit 1
334-
fi
324+
#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)"
325+
#if [ "$GLIBC_SYMBS" != "" ]; then
326+
# echo "Unexpected glibc version dependency! Some users need glibc 2.17 support, symbols for newer glibcs cannot be included."
327+
# echo "$GLIBC_SYMBS"
328+
# exit 1
329+
#fi
330+
#REALLOC_ARRAY_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep reallocarray || echo)"
331+
#if [ "$REALLOC_ARRAY_SYMBS" != "" ]; then
332+
# echo "Unexpected reallocarray dependency!"
333+
# exit 1
334+
#fi
335335
fi
336336
if [ "$LDK_JAR_TARGET" = "true" ]; then
337337
# Copy to JNI native directory for inclusion in JARs

0 commit comments

Comments
 (0)