projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ed5280
)
Link libm for debug builds in testing due to new rust libstd dep
author
Matt Corallo
<git@bluematt.me>
Fri, 24 Sep 2021 22:46:35 +0000
(22:46 +0000)
committer
Matt Corallo
<git@bluematt.me>
Fri, 24 Sep 2021 22:46:35 +0000
(22:46 +0000)
genbindings.sh
patch
|
blob
|
history
diff --git
a/genbindings.sh
b/genbindings.sh
index 3aa2f005390c19ed71a6a5acdca9d4d553c466b6..e6ffd8bb5a9f17d42707b96747d92f49f22e69e6 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-273,7
+273,7
@@
mv include/lightningpp_new.hpp include/lightningpp.hpp
# Finally, sanity-check the generated C and C++ bindings with demo apps:
# Naively run the C demo app:
# Finally, sanity-check the generated C and C++ bindings with demo apps:
# Naively run the C demo app:
-gcc $LOCAL_CFLAGS -Wall -g -pthread demo.c target/debug/libldk.a -ldl
+gcc $LOCAL_CFLAGS -Wall -g -pthread demo.c target/debug/libldk.a -ldl
-lm
./a.out
# And run the C++ demo app
./a.out
# And run the C++ demo app
@@
-283,7
+283,7
@@
LD_LIBRARY_PATH=target/debug/ ./a.out > /dev/null
# Finally, run the C++ demo app with our native networking library
# in valgrind to test memory model correctness and lack of leaks.
gcc $LOCAL_CFLAGS -fPIC -std=c99 -Wall -g -pthread -I../ldk-net ../ldk-net/ldk_net.c -c -o ldk_net.o
# Finally, run the C++ demo app with our native networking library
# in valgrind to test memory model correctness and lack of leaks.
gcc $LOCAL_CFLAGS -fPIC -std=c99 -Wall -g -pthread -I../ldk-net ../ldk-net/ldk_net.c -c -o ldk_net.o
-g++ $LOCAL_CFLAGS -std=c++11 -Wall -g -pthread -DREAL_NET -I../ldk-net ldk_net.o demo.cpp target/debug/libldk.a -ldl
+g++ $LOCAL_CFLAGS -std=c++11 -Wall -g -pthread -DREAL_NET -I../ldk-net ldk_net.o demo.cpp target/debug/libldk.a -ldl
-lm
if [ -x "`which valgrind`" ]; then
valgrind --error-exitcode=4 --memcheck:leak-check=full --show-leak-kinds=all ./a.out
echo
if [ -x "`which valgrind`" ]; then
valgrind --error-exitcode=4 --memcheck:leak-check=full --show-leak-kinds=all ./a.out
echo