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
8 - libscotcherrexit$(LIB)
9 + libscotcherrexit$(LIB) \
11 + libscotcherr$(LIBSO) \
12 + libscotcherrexit$(LIBSO)
15 $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" SCOTCHLIB=ptscotch \
19 libptscotcherr$(LIB) \
20 - libptscotcherrexit$(LIB)
21 + libptscotcherrexit$(LIB) \
22 + libptscotch$(LIBSO) \
23 + libptscotcherr$(LIBSO) \
24 + libptscotcherrexit$(LIBSO)
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)
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)
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)
43 @@ -2452,3 +2458,38 @@
44 libscotcherrexit$(LIB) : library_error_exit$(OBJ)
45 $(AR) $(ARFLAGS) $(@) $(?)
48 +libptscotch$(LIBSO) : libptscotch$(LIB)
50 + -soname $(@) -o $(@) \
51 + --whole-archive $(^) \
52 + --no-whole-archive $(LDFLAGS)
54 +libscotch$(LIBSO) : libscotch$(LIB)
56 + -soname $(@) -o $(@) \
57 + --whole-archive $(^) \
58 + --no-whole-archive $(LDFLAGS)
60 +libptscotcherr$(LIBSO) : libptscotcherr$(LIB)
62 + -soname $(@) -o $(@) \
63 + --whole-archive $(^) \
64 + --no-whole-archive $(LDFLAGS)
66 +libptscotcherrexit$(LIBSO) : libptscotcherrexit$(LIB)
68 + -soname $(@) -o $(@) \
69 + --whole-archive $(^) \
70 + --no-whole-archive $(LDFLAGS)
72 +libscotcherr$(LIBSO) : libscotcherr$(LIB)
74 + -soname $(@) -o $(@) \
75 + --whole-archive $(^) \
76 + --no-whole-archive $(LDFLAGS)
78 +libscotcherrexit$(LIBSO) : libscotcherrexit$(LIB)
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
88 $(MAKE) CC="$(CCS)" SCOTCHLIB=ptscotch \
89 - libscotchmetis$(LIB)
90 + libscotchmetis$(LIB) libscotchmetis$(LIBSO)
93 $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC="$(CCP)" SCOTCHLIB=ptscotch \
94 - libptscotchparmetis$(LIB)
95 + libptscotchparmetis$(LIB) libptscotchparmetis$(LIBSO)
98 -$(CP) metis.h $(includedir)
99 - -$(CP) libscotchmetis$(LIB) $(libdir)
100 + -$(CP) libscotchmetis$(LIB) libscotchmetis$(LIBSO) $(libdir)
103 -$(CP) parmetis.h $(includedir)
104 - -$(CP) libptscotchparmetis$(LIB) $(libdir)
105 + -$(CP) libptscotchparmetis$(LIB) libptscotchparmetis$(LIBSO) $(libdir)
108 - -$(RM) *~ *$(OBJ) lib*$(LIB)
109 + -$(RM) *~ *$(OBJ) lib*$(LIB) lib*$(LIBSO)
114 metis_graph_part_f$(OBJ)
115 $(AR) $(ARFLAGS) $(@) $(^)
118 +libptscotchparmetis$(LIBSO) : libptscotchparmetis$(LIB)
120 + -soname $(@) -o $(@) \
121 + --whole-archive $(^) \
123 +libscotchmetis$(LIBSO) : libscotchmetis$(LIB)
125 + -soname $(@) -o $(@) \
126 + --whole-archive $(^) \