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=7a7330243c82b309158b029a14b2fe6fcb1ef60a;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