[Rd] [PATCH] Add fpicflags for Intel(R) Fortran Compiler (PR#8344)

kugelfang@gentoo.org kugelfang at gentoo.org
Tue Nov 22 15:50:25 CET 2005


Full_Name: Danny van Dyk
Version: R-2.2.0
OS: Gentoo/AMD64
Submission from: (NULL) (83.129.50.65)


I have successfully compiled R-2.2.0 using ifc-9.0.026 on my x86_64 box.
The only (minor) change that hade to be made was adding fpicflags="-fPIC" to
configure.ac in case F77 matches either "ifc" (old name) or "ifort" (new name).

Please apply following patch:

dvandyk at phi trunk $ svn diff
        Index: configure.ac
===================================================================
--- configure.ac        (revision 36420)
+++ configure.ac        (working copy)
@@ -942,7 +942,7 @@
   rm -f Imakefile Makefile
 fi

-## Step 2.  GNU compilers.
+## Step 2.  GNU and Intel compilers.
 if test "${GCC}" = yes; then
   cpicflags="-fPIC"
   shlib_ldflags="-shared"
@@ -954,6 +954,11 @@
   cxxpicflags="-fPIC"
   shlib_cxxldflags="-shared"
 fi
+case "${F77}" in
+  ifc|ifort)
+    fpicflags="-fPIC"
+    ;;
+esac

 ## Step 3.  Individual platform overrides.
 case "${host_os}" in
===================================================================

Danny



More information about the R-devel mailing list