Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/punc/files: 1.4-linking.patch
Date: Sun, 31 Oct 2010 13:30:13
Message-Id: 20101031133009.178192003C@flycatcher.gentoo.org
1 jlec 10/10/31 13:30:09
2
3 Added: 1.4-linking.patch
4 Log:
5 Version Bump
6
7 (Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sci-libs/punc/files/1.4-linking.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/punc/files/1.4-linking.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/punc/files/1.4-linking.patch?rev=1.1&content-type=text/plain
14
15 Index: 1.4-linking.patch
16 ===================================================================
17 diff --git a/configure.ac b/configure.ac
18 index fcff075..f1262da 100644
19 --- a/configure.ac
20 +++ b/configure.ac
21 @@ -48,7 +48,8 @@ dnl 2. checks for programs
22 AC_LANG_C
23 AC_PROG_CC
24 AC_PROG_CPP
25 -AC_DISABLE_SHARED
26 +AC_PROG_F77
27 +AC_F77_LIBRARY_LDFLAGS
28 AM_PROG_LIBTOOL
29
30 dnl 3. checks for libraries
31 @@ -358,7 +359,7 @@ else
32 AC_CHECK_LIB(blas,dscal_,
33 [blas_use="yes";blas_lib="${blas_lib_path}-lblas"],
34 [blas_use="";blas_lib=""],
35 - [${blas_lib_path}-lblas -lvf2c])
36 + [${blas_lib_path}-lblas])
37 if test -z "${blas_use}"; then
38 AC_MSG_RESULT([** BLAS library missing ...will BUILD **])
39 blas="blas";
40 @@ -413,7 +414,7 @@ else
41 AC_CHECK_LIB(lapack,dsysv_,
42 [lapack_use="yes";lapack_lib="${lapack_lib_path}-llapack"],
43 [lapack_use="";lapack_lib=""],
44 - [${lapack_lib_path}-llapack ${blas_lib} -lvf2c])
45 + [${lapack_lib_path}-llapack ${blas_lib}])
46 if test -z "${lapack_use}"; then
47 AC_MSG_RESULT([** LAPACK library missing ...will BUILD **])
48 lapack="lapack";
49 @@ -465,10 +466,10 @@ else
50 LDFLAGS_SAVE=${LDFLAGS};
51 LDFLAGS=${amd_lib_path};
52 amd_use="";
53 - AC_CHECK_LIB(amd,AMD_order,
54 + AC_CHECK_LIB(amd,amd_order,
55 [amd_use="yes";amd_lib="${amd_lib_path}-lamd"],
56 [amd_use="";amd_lib=""],
57 - [${amd_lib_path}-lamd ${blas_lib} -lvf2c])
58 + [${amd_lib_path}-lamd ${blas_lib}])
59 if test -z "${amd_use}"; then
60 AC_MSG_RESULT([** AMD library missing ...will BUILD **])
61 amd="amd";
62 @@ -520,10 +521,10 @@ else
63 LDFLAGS_SAVE=${LDFLAGS};
64 LDFLAGS=${umfpack_lib_path};
65 umfpack_use="";
66 - AC_CHECK_LIB(umfpack,UMFPACK_numeric,
67 + AC_CHECK_LIB(umfpack,umfpack_di_numeric,
68 [umfpack_use="yes";umfpack_lib="${umfpack_lib_path}-lumfpack"],
69 [umfpack_use="";umfpack_lib=""],
70 - [${umfpack_lib_path}-lumfpack ${blas_lib} -lvf2c])
71 + [${umfpack_lib_path}-lumfpack ${blas_lib}])
72 if test -z "${umfpack_use}"; then
73 AC_MSG_RESULT([** UMFPACK library missing ...will BUILD **])
74 umfpack="umfpack";
75 @@ -578,7 +579,7 @@ else
76 AC_CHECK_LIB(superlu,Destroy_SuperMatrix_Store,
77 [superlu_use="yes";superlu_lib="${superlu_lib_path}-lsuperlu"],
78 [superlu_use="";superlu_lib=""],
79 - [${superlu_lib_path}-lsuperlu ${lapack_lib} ${blas_lib} -lvf2c])
80 + [${superlu_lib_path}-lsuperlu ${lapack_lib} ${blas_lib}])
81 if test -z "${superlu_use}"; then
82 AC_MSG_RESULT([** SUPERLU library missing ...will BUILD **])
83 superlu="superlu";
84 @@ -633,7 +634,7 @@ else
85 AC_CHECK_LIB(arpack,dsgets_,
86 [arpack_use="yes";arpack_lib="${arpack_lib_path}-larpack"],
87 [arpack_use="";arpack_lib=""],
88 - [${arpack_lib_path}-larpack ${blas_lib} -lvf2c])
89 + [${arpack_lib_path}-larpack ${blas_lib}])
90 if test -z "${arpack_use}"; then
91 AC_MSG_RESULT([** ARPACK library missing ...will BUILD **])
92 arpack="arpack";
93 @@ -688,7 +689,7 @@ else
94 AC_CHECK_LIB(cgcode,scgdrv_,
95 [cgcode_use="yes";cgcode_lib="${cgcode_lib_path}-lcgcode"],
96 [cgcode_use="";cgcode_lib=""],
97 - [${cgcode_lib_path}-lcgcode ${blas_lib} -lvf2c])
98 + [${cgcode_lib_path}-lcgcode ${blas_lib}])
99 if test -z "${cgcode_use}"; then
100 AC_MSG_RESULT([** CGCODE library missing ...will BUILD **])
101 cgcode="cgcode";
102 @@ -743,7 +744,7 @@ else
103 AC_CHECK_LIB(pmg,buildg_,
104 [pmg_use="yes";pmg_lib="${pmg_lib_path}-lpmg"],
105 [pmg_use="";pmg_lib=""],
106 - [${pmg_lib_path}-lpmg ${blas_lib} -lvf2c])
107 + [${pmg_lib_path}-lpmg ${blas_lib}])
108 if test -z "${pmg_use}"; then
109 AC_MSG_RESULT([** PMG library missing ...will BUILD **])
110 pmg="pmg";
111 @@ -982,13 +983,6 @@ AC_OUTPUT([
112 src/base/Makefile
113
114 src/vf2c/Makefile
115 - src/blas/Makefile
116 - src/lapack/Makefile
117 - src/amd/Makefile
118 - src/umfpack/Makefile
119 - src/superlu/Makefile
120 - src/arpack/Makefile
121 - src/cgcode/Makefile
122 src/pmg/Makefile
123
124 src/aaa_inc/Makefile
125 diff --git a/src/aaa_lib/Makefile.am b/src/aaa_lib/Makefile.am
126 index 2e17d41..2e1ce1e 100644
127 --- a/src/aaa_lib/Makefile.am
128 +++ b/src/aaa_lib/Makefile.am
129 @@ -102,11 +102,10 @@ else
130 LIBPMG =
131 endif
132
133 -libdir = ${prefix}/lib
134 lib_LTLIBRARIES = libpunc.la ${LIBVF2C} ${LIBBLAS} ${LIBLAPACK} ${LIBAMD} ${LIBUMFPACK} ${LIBSUPERLU} ${LIBARPACK} ${LIBCGCODE} ${LIBPMG}
135
136 libpunc_la_SOURCES =
137 -libpunc_la_LIBADD = ${BASE_LIBS}
138 +libpunc_la_LIBADD = ${BASE_LIBS} -lm
139 libpunc_la_LDFLAGS = -version-info ${FETK_VERSION}
140
141 libvf2c_la_SOURCES =
142 @@ -142,6 +141,6 @@ libcgcode_la_LIBADD = ${CGCODE_LIBS}
143 libcgcode_la_LDFLAGS = -version-info ${FETK_VERSION}
144
145 libpmg_la_SOURCES =
146 -libpmg_la_LIBADD = ${PMG_LIBS}
147 +libpmg_la_LIBADD = ${PMG_LIBS} -lgfortran -lf2c -lmaloc -lm
148 libpmg_la_LDFLAGS = -version-info ${FETK_VERSION}
149
150 diff --git a/src/pmg/Makefile.am b/src/pmg/Makefile.am
151 index cae9324..8eb0ba0 100644
152 --- a/src/pmg/Makefile.am
153 +++ b/src/pmg/Makefile.am
154 @@ -38,13 +38,14 @@ always_built_SUBDIRS =
155 SUBDIRS = $(always_built_SUBDIRS) .
156 THISLIB = pmg
157
158 -noinst_LTLIBRARIES = libpmg.la
159 +lib_LTLIBRARIES = libpmg.la
160
161 SRC = buildAd.c buildBd.c buildGd.c buildPd.c cgd.c cgmgd.c cgmgdrvd.c gsd.c matvecd.c mblasd.c mgcsd.c mgdrvd.c mgfasd.c mgsubd.c mikpckd.c mlinpckd.c ncgd.c ncgdrvd.c newdrvd.c newtond.c ngsd.c ngsdrvd.c ninterpd.c nrchd.c nrchdrvd.c nsmoothd.c nsord.c nsordrvd.c nwjd.c nwjdrvd.c powerd.c rchd.c smoothd.c sord.c wjd.c
162
163 libpmg_la_SOURCES = ${SRC}
164 INCLUDES = @maloc_inc@
165 AM_CFLAGS = @profile@ @pedantic_ansi@
166 +libpmg_la_LIBADD = -lf2c
167
168 all-local:
169 # -cp -p ${top_srcdir}/src/${THISLIB}/punc/*.h ../aaa_inc/punc/.