]> git.eshelyaron.com Git - sweep.git/commitdiff
PORT: link libswipl statically to sweep.so dont-require-ld-preload-on-linux
authorEshel Yaron <me@eshelyaron.com>
Fri, 9 Sep 2022 06:01:44 +0000 (09:01 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 9 Sep 2022 06:01:44 +0000 (09:01 +0300)
Makefile

index c8470be2a2a7ca5c5d27ed593b62b382ade3e408..b4e82dfe36e2681ca7da3438c2dc21d323e0b578 100644 (file)
--- 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