Hotfix: Turbulence generation fix in k-omega-SST. Thijs Gillebaart
[foam-extend-3.2.git] / ThirdParty / rpmBuild / SOURCES / ParMetis-3.1.1.patch
blob6639c7f2c0c5883096875f6b3921a07fe9846367
1 diff -ruN ParMetis-3.1.1-orig/METISLib/Makefile ParMetis-3.1.1/METISLib/Makefile
2 --- ParMetis-3.1.1-orig/METISLib/Makefile 2007-03-19 13:46:34.000000000 -0400
3 +++ ParMetis-3.1.1/METISLib/Makefile 2010-10-29 12:21:47.000000000 -0400
4 @@ -19,7 +19,7 @@
5 .c.o:
6 $(CC) $(CFLAGS) -c $*.c
8 -../libmetis.a: $(OBJS)
9 +libmetis-parmetis.$(LIB_EXT): $(OBJS)
10 $(AR) $@ $(OBJS)
11 $(RANLIB) $@
13 @@ -27,7 +27,7 @@
14 rm -f *.o
16 realclean:
17 - rm -f *.o ; rm -f ../libmetis.a
18 + rm -f *.o ; rm -f libmetis-parmetis.$(LIB_EXT)
21 checkin:
23 diff -ruN ParMetis-3.1.1-orig/Makefile.in ParMetis-3.1.1/Makefile.in
24 --- ParMetis-3.1.1-orig/Makefile.in 2008-11-17 18:47:06.000000000 -0500
25 +++ ParMetis-3.1.1/Makefile.in 2010-10-29 12:06:46.000000000 -0400
26 @@ -4,7 +4,7 @@
29 # What optimization level to use
30 -OPTFLAGS = -O3
31 +OPTFLAGS = -O3 -fPIC
33 # Include directories for the compiler
34 INCDIR =
35 @@ -22,11 +22,14 @@
36 #XTRALIBS = -lefence
37 #XTRALIBS = -ldmalloc
39 +# Dynamic lib extension
40 +LIB_EXT = so
42 # What archiving to use
43 -AR = ar rv
44 +AR = gcc -shared -o
46 # What to use for indexing the archive
47 #RANLIB = ranlib
48 -RANLIB = ar -ts
49 +RANLIB = true
51 VERNUM =
52 diff -ruN ParMetis-3.1.1-orig/ParMETISLib/Makefile ParMetis-3.1.1/ParMETISLib/Makefile
53 --- ParMetis-3.1.1-orig/ParMETISLib/Makefile 2008-11-17 17:43:23.000000000 -0500
54 +++ ParMetis-3.1.1/ParMETISLib/Makefile 2010-10-29 12:07:44.000000000 -0400
55 @@ -22,7 +22,7 @@
56 $(CC) $(CFLAGS) -c $*.c
59 -../libparmetis.a: $(OBJS)
60 +libparmetis.$(LIB_EXT): $(OBJS)
61 $(AR) $@ $(OBJS)
62 $(RANLIB) $@
64 @@ -30,7 +30,7 @@
65 rm -f *.o
67 realclean:
68 - rm -f *.o ; rm -f ../libparmetis.a
69 + rm -f *.o ; rm -f ./libparmetis.$(LIB_EXT)
72 checkin:
74 diff -ruN ParMetis-3.1.1-orig/Programs/Makefile ParMetis-3.1.1/Programs/Makefile
75 --- ParMetis-3.1.1-orig/Programs/Makefile 2008-11-17 18:47:06.000000000 -0500
76 +++ ParMetis-3.1.1/Programs/Makefile 2010-10-29 12:27:24.000000000 -0400
77 @@ -6,9 +6,9 @@
78 CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES)
81 -LIBSDIR = -L.. $(LIBDIR)
82 -LIBS = -lparmetis -lmetis $(XTRALIBS) -lm
83 -PARMETISLIB = ../libparmetis.a ../libmetis.a
84 +LIBSDIR = -L../METISLib -L../ParMETISLib $(LIBDIR)
85 +LIBS = -lparmetis -lmetis-parmetis $(XTRALIBS) -lm
86 +PARMETISLIB = ../ParMETISLib/libparmetis.$(LIB_EXT) ../METISLib/libmetis-parmetis.$(LIB_EXT)
89 PTESTOBJS = ptest.o io.o adaptgraph.o
90 @@ -16,7 +16,6 @@
91 PARMETISOBJS = parmetis.o io.o adaptgraph.o
92 POMETISOBJS = pometis.o io.o
95 .c.o:
96 $(CC) $(CFLAGS) -c $*.c