From kugelfang at gentoo.org  Tue Nov 22 15:50:25 2005
From: kugelfang at gentoo.org (kugelfang@gentoo.org)
Date: Tue, 22 Nov 2005 15:50:25 +0100 (CET)
Subject: [Rd] [PATCH] Add fpicflags for Intel(R) Fortran Compiler (PR#8344)
Message-ID: <20051122145025.4837FCA08@slim.kubism.ku.dk>

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



[Rd] [PATCH] Add fpicflags for Intel(R) Fortran Compiler (PR#8344)
kugelfang@gentoo.org