only static link sqlite/gmp/zlib

This commit is contained in:
arowser 2018-12-14 16:48:33 +08:00 committed by Rusty Russell
parent 64677dcbe5
commit 65fa1c4f39

View File

@ -181,7 +181,7 @@ CONFIGURATOR_CC := $(CC)
LDFLAGS = $(PIE_LDFLAGS)
ifeq ($(STATIC),1)
LDLIBS = -static -L/usr/local/lib -lgmp -lsqlite3 -lm -lz -lpthread -ldl $(COVFLAGS)
LDLIBS = -L/usr/local/lib -Wl,-dn -lgmp -lsqlite3 -lz -Wl,-dy -lm -lpthread -ldl $(COVFLAGS)
else
LDLIBS = -L/usr/local/lib -lm -lgmp -lsqlite3 -lz $(COVFLAGS)
endif