updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ptscotch / scotch-5.1.8a.diff
blob56b55423671b4f72e847fd39b01a2a277397ae43
1 diff -Naur scotch_5.1.8a.orig//src/libscotch/Makefile scotch_5.1.8a/src/libscotch/Makefile
2 --- scotch_5.1.8a.orig//src/libscotch/Makefile 2010-05-27 01:07:08.229052842 +0200
3 +++ scotch_5.1.8a/src/libscotch/Makefile 2010-05-27 01:08:22.059452266 +0200
4 @@ -57,7 +57,10 @@
5 scotchf.h \
6 libscotch$(LIB) \
7 libscotcherr$(LIB) \
8 - libscotcherrexit$(LIB)
9 + libscotcherrexit$(LIB) \
10 + libscotch$(LIBSO) \
11 + libscotcherr$(LIBSO) \
12 + libscotcherrexit$(LIBSO)
14 ptscotch : clean
15 $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" SCOTCHLIB=ptscotch \
16 @@ -66,19 +69,22 @@
17 libptscotch$(LIB) \
18 libscotch$(LIB) \
19 libptscotcherr$(LIB) \
20 - libptscotcherrexit$(LIB)
21 + libptscotcherrexit$(LIB) \
22 + libptscotch$(LIBSO) \
23 + libptscotcherr$(LIBSO) \
24 + libptscotcherrexit$(LIBSO)
26 install :
27 -$(CP) scotch.h scotchf.h $(includedir)
28 - -$(CP) libscotch$(LIB) libscotcherr*$(LIB) $(libdir)
29 + -$(CP) libscotch$(LIB) libscotcherr*$(LIB) libscotch$(LIBSO) libscotcherr*$(LIBSO) $(libdir)
31 ptinstall :
32 -$(CP) scotch.h $(includedir)/ptscotch.h
33 -$(CP) scotchf.h $(includedir)/ptscotchf.h
34 - -$(CP) libptscotch*$(LIB) $(libdir)
35 + -$(CP) libptscotch*$(LIB) libptscotch*$(LIBSO) $(libdir)
37 clean :
38 - -$(RM) *~ *$(OBJ) lib*$(LIB) common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes$(EXE)
39 + -$(RM) *~ *$(OBJ) lib*$(LIB) lib*$(LIBSO) common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes$(EXE)
41 realclean : clean
43 @@ -2452,3 +2458,38 @@
44 libscotcherrexit$(LIB) : library_error_exit$(OBJ)
45 $(AR) $(ARFLAGS) $(@) $(?)
46 -$(RANLIB) $(@)
48 +libptscotch$(LIBSO) : libptscotch$(LIB)
49 + $(LD) \
50 + -soname $(@) -o $(@) \
51 + --whole-archive $(^) \
52 + --no-whole-archive $(LDFLAGS)
54 +libscotch$(LIBSO) : libscotch$(LIB)
55 + $(LD) \
56 + -soname $(@) -o $(@) \
57 + --whole-archive $(^) \
58 + --no-whole-archive $(LDFLAGS)
60 +libptscotcherr$(LIBSO) : libptscotcherr$(LIB)
61 + $(LD) \
62 + -soname $(@) -o $(@) \
63 + --whole-archive $(^) \
64 + --no-whole-archive $(LDFLAGS)
66 +libptscotcherrexit$(LIBSO) : libptscotcherrexit$(LIB)
67 + $(LD) \
68 + -soname $(@) -o $(@) \
69 + --whole-archive $(^) \
70 + --no-whole-archive $(LDFLAGS)
72 +libscotcherr$(LIBSO) : libscotcherr$(LIB)
73 + $(LD) \
74 + -soname $(@) -o $(@) \
75 + --whole-archive $(^) \
76 + --no-whole-archive $(LDFLAGS)
78 +libscotcherrexit$(LIBSO) : libscotcherrexit$(LIB)
79 + $(LD) \
80 + -soname $(@) -o $(@) \
81 + --whole-archive $(^) \
82 diff -Naur scotch_5.1.8a.orig//src/libscotchmetis/Makefile scotch_5.1.8a/src/libscotchmetis/Makefile
83 --- scotch_5.1.8a.orig//src/libscotchmetis/Makefile 2010-05-27 01:07:08.227278863 +0200
84 +++ scotch_5.1.8a/src/libscotchmetis/Makefile 2010-05-27 01:08:02.732414321 +0200
85 @@ -54,22 +54,22 @@
87 scotch :
88 $(MAKE) CC="$(CCS)" SCOTCHLIB=ptscotch \
89 - libscotchmetis$(LIB)
90 + libscotchmetis$(LIB) libscotchmetis$(LIBSO)
92 ptscotch :
93 $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" SCOTCHLIB=ptscotch \
94 - libptscotchparmetis$(LIB)
95 + libptscotchparmetis$(LIB) libptscotchparmetis$(LIBSO)
97 install : scotch
98 -$(CP) metis.h $(includedir)
99 - -$(CP) libscotchmetis$(LIB) $(libdir)
100 + -$(CP) libscotchmetis$(LIB) libscotchmetis$(LIBSO) $(libdir)
102 ptinstall : ptscotch
103 -$(CP) parmetis.h $(includedir)
104 - -$(CP) libptscotchparmetis$(LIB) $(libdir)
105 + -$(CP) libptscotchparmetis$(LIB) libptscotchparmetis$(LIBSO) $(libdir)
107 clean :
108 - -$(RM) *~ *$(OBJ) lib*$(LIB)
109 + -$(RM) *~ *$(OBJ) lib*$(LIB) lib*$(LIBSO)
111 realclean : clean
113 @@ -138,3 +138,13 @@
114 metis_graph_part_f$(OBJ)
115 $(AR) $(ARFLAGS) $(@) $(^)
116 -$(RANLIB) $(@)
118 +libptscotchparmetis$(LIBSO) : libptscotchparmetis$(LIB)
119 + $(LD) \
120 + -soname $(@) -o $(@) \
121 + --whole-archive $(^) \
123 +libscotchmetis$(LIBSO) : libscotchmetis$(LIB)
124 + $(LD) \
125 + -soname $(@) -o $(@) \
126 + --whole-archive $(^) \