From 7a7330243c82b309158b029a14b2fe6fcb1ef60a Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 9 Sep 2022 09:01:44 +0300 Subject: [PATCH] PORT: link libswipl statically to sweep.so --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2