From: Eshel Yaron Date: Fri, 9 Sep 2022 06:01:44 +0000 (+0300) Subject: PORT: link libswipl statically to sweep.so X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fdont-require-ld-preload-on-linux;p=sweep.git PORT: link libswipl statically to sweep.so --- diff --git a/Makefile b/Makefile index c8470be..b4e82df 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,13 @@ SOURCE = $(BASENAME).c LDFLAGS += -shared LDFLAGS += -L$(SWIPLLIBDIR) +ifeq ($(UNAME_S),Linux) + LDFLAGS += -Wl,-Bstatic +endif LDFLAGS += -lswipl +ifeq ($(UNAME_S),Linux) + LDFLAGS += -Wl,-Bdynamic +endif CFLAGS += -fPIC CFLAGS += -Wall