mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
Makefile: fix static linking.
And update --enable-static, since it doesn't actually create a static
binary since 65fa1c4f39.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
a91b454749
commit
c617f19a29
5
Makefile
5
Makefile
@@ -196,7 +196,10 @@ CONFIGURATOR_CC := $(CC)
|
|||||||
|
|
||||||
LDFLAGS += $(PIE_LDFLAGS) $(SANITIZER_FLAGS) $(COPTFLAGS)
|
LDFLAGS += $(PIE_LDFLAGS) $(SANITIZER_FLAGS) $(COPTFLAGS)
|
||||||
ifeq ($(STATIC),1)
|
ifeq ($(STATIC),1)
|
||||||
LDLIBS = -L/usr/local/lib -Wl,-lgmp -lsqlite3 -lz -Wl,-lm -lpthread -ldl $(COVFLAGS)
|
# For MacOS, Jacob Rapoport <jacob@rumblemonkey.com> changed this to:
|
||||||
|
# -L/usr/local/lib -Wl,-lgmp -lsqlite3 -lz -Wl,-lm -lpthread -ldl $(COVFLAGS)
|
||||||
|
# But that doesn't static link.
|
||||||
|
LDLIBS = -L/usr/local/lib -Wl,-dn -lgmp -lsqlite3 -lz -Wl,-dy -lm -lpthread -ldl $(COVFLAGS)
|
||||||
else
|
else
|
||||||
LDLIBS = -L/usr/local/lib -lm -lgmp -lsqlite3 -lz $(COVFLAGS)
|
LDLIBS = -L/usr/local/lib -lm -lgmp -lsqlite3 -lz $(COVFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|||||||
2
configure
vendored
2
configure
vendored
@@ -145,7 +145,7 @@ usage()
|
|||||||
usage_with_default "--enable/disable-valgrind" "(autodetect)"
|
usage_with_default "--enable/disable-valgrind" "(autodetect)"
|
||||||
echo " Valgrind binary to use for tests"
|
echo " Valgrind binary to use for tests"
|
||||||
usage_with_default "--enable/disable-static" "$STATIC" "enable" "disable"
|
usage_with_default "--enable/disable-static" "$STATIC" "enable" "disable"
|
||||||
echo " Static link binary"
|
echo " Static link sqlite3, gmp and zlib libraries"
|
||||||
usage_with_default "--enable/disable-address-sanitizer" "$ASAN" "enable" "disable"
|
usage_with_default "--enable/disable-address-sanitizer" "$ASAN" "enable" "disable"
|
||||||
echo " Compile with address-sanitizer"
|
echo " Compile with address-sanitizer"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user