projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
711bc9c
)
[Java] Strip Java binaries when compiling, not just wasm
author
Matt Corallo
<git@bluematt.me>
Tue, 12 Jul 2022 18:49:17 +0000
(18:49 +0000)
committer
Matt Corallo
<git@bluematt.me>
Fri, 22 Jul 2022 21:51:50 +0000
(21:51 +0000)
genbindings.sh
patch
|
blob
|
history
diff --git
a/genbindings.sh
b/genbindings.sh
index 4102884dc92350ac4cb91565abfefa8d87979b2e..504fbc70e1937ae1699b12c46d1ebad9a1fb7ab0 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-159,7
+159,7
@@
if [ "$2" != "wasm" ]; then
popd
LDK_LIB="tmp/libldk.bc tmp/libldk.a"
fi
popd
LDK_LIB="tmp/libldk.bc tmp/libldk.a"
fi
- $COMPILE -o liblightningjni_release$LDK_TARGET_SUFFIX.so -flto -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c $LDK_LIB -lm
+ $COMPILE -o liblightningjni_release$LDK_TARGET_SUFFIX.so -
s -
flto -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c $LDK_LIB -lm
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
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