ports/math/metis-edf/files/patch-Lib_Makefile
Thierry Thomas 55e6556d12 Upgrade Code_Aster to 11.5.0-4.
N.B.: french/aster is still marked BROKEN, but this allows to unbreak
other ports sharing the same dependencies.

Patch for french/med provided by tijl.
2014-03-18 21:09:03 +00:00

21 lines
484 B
Plaintext

--- Lib/Makefile.orig 2012-10-02 18:12:21.000000000 +0200
+++ Lib/Makefile 2013-08-13 22:16:53.000000000 +0200
@@ -2,7 +2,7 @@
INCLUDES = -I.
-CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES)
+CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES) $(PICFLAG)
LD = $(CC) -L.
@@ -23,6 +23,8 @@
../libmetis.a: $(OBJS)
$(AR) $@ $(OBJS)
$(RANLIB) $@
+ $(CC) -shared $(CFLAGS) $(LDFLAGS) -o ../libmetis.so.0 $(OBJS) -lm
+ (cd .. && ln -sf libmetis.so.0 libmetis.so)
clean:
rm -f *.o