This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch_darwin

97 lines
2.7 KiB
Text

diff -ruN ParMetis-3.1.1_orig/METISLib/Makefile ParMetis-3.1.1/METISLib/Makefile
--- ParMetis-3.1.1_orig/METISLib/Makefile 2007-03-19 13:46:34.000000000 -0400
+++ ParMetis-3.1.1/METISLib/Makefile 2010-10-31 17:13:46.000000000 -0400
@@ -19,7 +19,7 @@
.c.o:
$(CC) $(CFLAGS) -c $*.c
-../libmetis.a: $(OBJS)
+libmetis-parmetis.$(LIB_EXT): $(OBJS)
$(AR) $@ $(OBJS)
$(RANLIB) $@
@@ -27,7 +27,7 @@
rm -f *.o
realclean:
- rm -f *.o ; rm -f ../libmetis.a
+ rm -f *.o ; rm -f libmetis-parmetis.$(LIB_EXT)
checkin:
Binary files ParMetis-3.1.1_orig/METISLib/libmetis-parmetis.dylib and ParMetis-3.1.1/METISLib/libmetis-parmetis.dylib differ
diff -ruN ParMetis-3.1.1_orig/Makefile.in ParMetis-3.1.1/Makefile.in
--- ParMetis-3.1.1_orig/Makefile.in 2008-11-17 18:47:06.000000000 -0500
+++ ParMetis-3.1.1/Makefile.in 2010-10-31 17:20:54.000000000 -0400
@@ -10,7 +10,7 @@
INCDIR =
# What options to be used by the compiler
-COPTIONS = -DNDEBUG
+COPTIONS = -DNDEBUG -fPIC
# Which loader to use
LD = $(CC)
@@ -22,11 +22,14 @@
#XTRALIBS = -lefence
#XTRALIBS = -ldmalloc
+# Dynamic lib extension
+LIB_EXT = dylib
+
# What archiving to use
-AR = ar rv
+AR = gcc -dynamiclib -undefined dynamic_lookup -shared -o
# What to use for indexing the archive
#RANLIB = ranlib
-RANLIB = ar -ts
+RANLIB = true
VERNUM =
diff -ruN ParMetis-3.1.1_orig/ParMETISLib/Makefile ParMetis-3.1.1/ParMETISLib/Makefile
--- ParMetis-3.1.1_orig/ParMETISLib/Makefile 2008-11-17 17:43:23.000000000 -0500
+++ ParMetis-3.1.1/ParMETISLib/Makefile 2010-10-31 17:13:46.000000000 -0400
@@ -22,7 +22,7 @@
$(CC) $(CFLAGS) -c $*.c
-../libparmetis.a: $(OBJS)
+libparmetis.$(LIB_EXT): $(OBJS)
$(AR) $@ $(OBJS)
$(RANLIB) $@
@@ -30,7 +30,7 @@
rm -f *.o
realclean:
- rm -f *.o ; rm -f ../libparmetis.a
+ rm -f *.o ; rm -f ./libparmetis.$(LIB_EXT)
checkin:
Binary files ParMetis-3.1.1_orig/ParMETISLib/libparmetis.dylib and ParMetis-3.1.1/ParMETISLib/libparmetis.dylib differ
diff -ruN ParMetis-3.1.1_orig/Programs/Makefile ParMetis-3.1.1/Programs/Makefile
--- ParMetis-3.1.1_orig/Programs/Makefile 2008-11-17 18:47:06.000000000 -0500
+++ ParMetis-3.1.1/Programs/Makefile 2010-10-31 17:13:46.000000000 -0400
@@ -6,9 +6,9 @@
CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES)
-LIBSDIR = -L.. $(LIBDIR)
-LIBS = -lparmetis -lmetis $(XTRALIBS) -lm
-PARMETISLIB = ../libparmetis.a ../libmetis.a
+LIBSDIR = -L../METISLib -L../ParMETISLib $(LIBDIR)
+LIBS = -lparmetis -lmetis-parmetis $(XTRALIBS) -lm
+PARMETISLIB = ../ParMETISLib/libparmetis.$(LIB_EXT) ../METISLib/libmetis-parmetis.$(LIB_EXT)
PTESTOBJS = ptest.o io.o adaptgraph.o
@@ -16,7 +16,6 @@
PARMETISOBJS = parmetis.o io.o adaptgraph.o
POMETISOBJS = pometis.o io.o
-
.c.o:
$(CC) $(CFLAGS) -c $*.c