projects/guix·blob python-team · refs

46 lines · 1.5 KiB

1From fcb865786b524917aa9d3df8745aca66716794bf Mon Sep 17 00:00:00 2001
2From: Mate Soos <[email protected]>
3Date: Sun, 2 Jun 2024 21:50:06 -0400
4Subject: [PATCH] Also add a dynamic library
5
6---
7Liliana Marie Prikler <[email protected]>:
8 Added -L.
9 Squashed fix for cadical and mobical.
10
11 makefile.in | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
13
14diff --git a/makefile.in b/makefile.in
15index 5e1c1b3a..de3fe975 100644
16--- a/makefile.in
17+++ b/makefile.in
18@@ -38,7 +38,7 @@ COMPILE=$(CXX) $(CXXFLAGS) -I$(DIR) -I../src
19
20 #--------------------------------------------------------------------------#
21
22-all: libcadical.a cadical mobical
23+all: libcadical.so libcadical.a cadical mobical
24
25 #--------------------------------------------------------------------------#
26
27@@ -53,14 +53,17 @@ all: libcadical.a cadical mobical
28 # tester 'mobical') and the library are the main build targets.
29
30 cadical: cadical.o libcadical.a makefile
31- $(COMPILE) -o $@ $< -L. -lcadical $(LIBS)
32+ $(COMPILE) -static -o $@ $< -L. -lcadical $(LIBS)
33
34 mobical: mobical.o libcadical.a makefile $(LIBS)
35- $(COMPILE) -o $@ $< -L. -lcadical
36+ $(COMPILE) -static -o $@ $< -L. -lcadical
37
38 libcadical.a: $(OBJ_SOLVER) $(OBJ_CONTRIB) makefile
39 ar rc $@ $(OBJ_SOLVER) $(OBJ_CONTRIB)
40
41+libcadical.so: $(OBJ_SOLVER) $(OBJ_CONTRIB) $(LIBS) makefile
42+ $(COMPILE) -shared -o $@ $(OBJ_SOLVER) $(OBJ_CONTRIB) $(LIBS)
43+
44 #--------------------------------------------------------------------------#
45
46 # Note that 'build.hpp' is generated and resides in the build directory.