From 85623fa1a7dc091439caa16b12f4cae89a0f31f5 Mon Sep 17 00:00:00 2001 From: cournape Date: Fri, 18 Sep 2009 07:05:47 +0000 Subject: [PATCH] BUG: do not add -fPIC on non-posix platform for ifort tool. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4367 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/ifort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/ifort.py b/src/engine/SCons/Tool/ifort.py index be5f54dd..e4165de6 100644 --- a/src/engine/SCons/Tool/ifort.py +++ b/src/engine/SCons/Tool/ifort.py @@ -65,7 +65,8 @@ def generate(env): for dialect in ['F77', 'F90', 'FORTRAN', 'F95']: env['%s' % dialect] = fc env['SH%s' % dialect] = '$%s' % dialect - env['SH%sFLAGS' % dialect] = SCons.Util.CLVar('$%sFLAGS -fPIC' % dialect) + if env['PLATFORM'] == 'posix': + env['SH%sFLAGS' % dialect] = SCons.Util.CLVar('$%sFLAGS -fPIC' % dialect) if env['PLATFORM'] == 'win32': # On Windows, the ifort compiler specifies the object on the -- 2.26.2