From 65fa1c4f39418d1728cae09bd20e9c0c9476bbff Mon Sep 17 00:00:00 2001 From: arowser Date: Fri, 14 Dec 2018 16:48:33 +0800 Subject: [PATCH] only static link sqlite/gmp/zlib --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1dbfcac78..136d3afd4 100644 --- a/Makefile +++ b/Makefile @@ -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