Skip to content

Commit 7d7c8d6

Browse files
committed
Disable LTO, which seems to be failing for an unknown reason
1 parent d48ed4f commit 7d7c8d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

genbindings.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,7 @@ else
273273
if [ "$3" = "true" ]; then
274274
$COMPILE $LINK -o liblightningjni_debug$LDK_TARGET_SUFFIX.so -g -fsanitize=address -shared-libasan -rdynamic -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c "$1"/lightning-c-bindings/target/$LDK_TARGET/debug/libldk.a -lm
275275
else
276-
[ "$IS_MAC" = "false" ] && LINK="$LINK -Wl,--no-undefined -flto -Wl,-O3 -Wl,--lto-O3"
277-
[ "$IS_MAC" = "false" ] && COMPILE="$COMPILE -flto"
278-
[ "$IS_MAC" = "true" -a "$IS_APPLE_CLANG" = "false" ] && LINK="$LINK -flto -Wl,-O3 -Wl,--lto-O3"
279-
[ "$IS_MAC" = "true" -a "$IS_APPLE_CLANG" = "false" ] && COMPILE="$COMPILE -flto"
276+
[ "$IS_MAC" = "false" ] && LINK="$LINK -Wl,--no-undefined"
280277
LDK_LIB="$1"/lightning-c-bindings/target/$LDK_TARGET/release/libldk.a
281278
if [ "$IS_MAC" = "false" -a "$4" = "false" ]; then
282279
LINK="$LINK -Wl,--version-script=libcode.version -fuse-ld=lld"

0 commit comments

Comments
 (0)