aboutsummaryrefslogtreecommitdiffstats
path: root/math/mumps4/files/patch-PORD_lib_Makefile
blob: 6b3f9cca85e80819c26d4f621c833aa2f49e06e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- PORD/lib/Makefile.orig  2011-05-10 12:56:32 UTC
+++ PORD/lib/Makefile
@@ -21,10 +21,15 @@ OBJS = graph.o gbipart.o gbisect.o ddcre
 .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