[Lunar-commits] <moonbase> fftw: Adjusting the BUILD. It has trouble finding gfortran if it was enabled in
Dennis `stumbles` Veatch
stumbles at lunar-linux.org
Tue Jan 11 12:19:32 CET 2011
commit 40a9ad74fe66b998042f67efb297aaa6c8dd141b
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date: Tue Jan 11 06:19:32 2011 -0500
fftw: Adjusting the BUILD. It has trouble finding gfortran if it was enabled in
glibc, a simple sedit fixes that by simply inserting the command "gfortran"
into its list of names during its search.
Additionally, like the fftw3 module, in order to get single and double
precision libraries the configure and make needs a second run. They are
identified as libs(blah) and libd(blah)
.
---
libs/fftw/BUILD | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/libs/fftw/BUILD b/libs/fftw/BUILD
index eefd9c0..cd45589 100644
--- a/libs/fftw/BUILD
+++ b/libs/fftw/BUILD
@@ -1,5 +1,11 @@
(
+# Has trouble finding gfortran.
+ sedit "s:g77 f77:g77 f77 gfortran:g" configure &&
+
+# Like the fftw3 module, to get float and non-float precision this
+# needs to be ran twice.
+
case `arch` in
i386|i486|i586|i686|athlon)
OPTS="$OPTS --enable-i386-hacks"
@@ -10,6 +16,19 @@
./configure --prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
+ --enable-type-prefix \
+ --enable-shared \
+ --enable-threads \
+ --enable-float \
+ $OPTS &&
+
+ default_make &&
+ make distclean &&
+
+ ./configure --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --enable-type-prefix \
--enable-shared \
--enable-threads \
$OPTS &&
More information about the Lunar-commits
mailing list