ports/math/mumps4/files/patch-PORD_lib_Makefile
2020-02-23 10:07:39 +00:00

19 lines
501 B
Text

--- 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