Use the compiler to assemble the shared libraries, in order to avoid linking

problems

PR:		177201
Submitted by:	marino, thierry
This commit is contained in:
Brendan Fabeny 2013-08-13 05:07:35 +00:00
parent a582c52d89
commit c55a305d36
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324649

View file

@ -1,5 +1,5 @@
--- Lib/Makefile.orig 2008-12-03 11:08:03.000000000 +0100
+++ Lib/Makefile 2010-05-16 16:33:40.000000000 +0200
--- Lib/Makefile.orig 2008-12-03 05:08:03.000000000 -0500
+++ Lib/Makefile 2013-08-13 00:53:40.000000000 -0400
@@ -2,7 +2,7 @@
INCLUDES = -I.
@ -13,7 +13,7 @@
../libmetis.a: $(OBJS)
$(AR) $@ $(OBJS)
+ %%SHLIB%%$(LD) -Wl,-Bshareable -Wl,-o,../libmetis.so.1 -Wl,-x -Wl,-soname,libmetis.so.1 -Wl,--whole-archive ../libmetis.a -Wl,-no-whole-archive
+ %%SHLIB%%$(CC) -shared $(CFLAGS) $(LDFLAGS) -o ../libmetis.so.1 $(OBJS) -lm
+ %%SHLIB%%(cd .. && ln -sf libmetis.so.1 libmetis.so)
clean: