ports/math/mumps/files/patch-PORD_lib_Makefile
Thierry Thomas a357e8b5db Rename the shared libraries correctly.
Reported by:	pfg
2017-06-14 21:10:00 +00:00

20 lines
490 B
Text

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