summaryrefslogtreecommitdiff
path: root/math/mumps4/files/patch-PORD_lib_Makefile
blob: a5383845d4d87dc46eb2ef8226a7dcfac69d3183 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- PORD/lib/Makefile.orig	2011-05-10 12:56:32 UTC
+++ PORD/lib/Makefile
@@ -21,9 +21,14 @@ OBJS = graph.o gbipart.o gbisect.o ddcreate.o ddbisect
 .c.o:
 	$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
 
-libpord$(LIBEXT):$(OBJS)
-	$(AR)$@ $(OBJS)
+all: libpord$(LIBEXT) libpord.so.@SOVER@
+
+libpord$(LIBEXT): $(OBJS)
+	$(AR) $@ $(OBJS)
 	$(RANLIB) $@
+
+libpord.so.@SOVER@: $(OBJS)
+	$(CC) -shared $(OBJS) -Wl,-soname,libpord$(PLAT).so.@SOVER@ -o libpord$(PLAT).so.@SOVER@ -Wl,-z,defs
 
 clean:
 	rm -f *.o