From: cournape Date: Fri, 18 Sep 2009 07:05:47 +0000 (+0000) Subject: BUG: do not add -fPIC on non-posix platform for ifort tool. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85623fa1a7dc091439caa16b12f4cae89a0f31f5;p=scons.git 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 --- 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