Changeset 321


Ignore:
Timestamp:
Jun 30, 2011 10:26:26 AM (10 years ago)
Author:
vondreele
Message:

works on Linux 64!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r320 r321  
    123123    if FORTpath == "": FORTpath = GFORTpath
    124124    if F2PYflags == "": F2PYflags = '--fcompiler=gnu95 --f77exec=gfortran --f77flags="-fno-range-check"'
     125    if sys.platform == "linux2":
     126        if FORTflags == "": FORTflags = ' -w -O2 -fPIC'
    125127elif FCompiler == 'g77':
    126128    if FORTpath == "": FORTpath = G77path
     
    188190env.Append(BUILDERS = {'f2py' : f2py},)
    189191
    190 if ARGUMENTS.get('FCompiler', None) is not None or env.get('FORTRAN') is None:
     192#if ARGUMENTS.get('FCompiler', None) is not None or env.get('FORTRAN') is None:
     193if True:
    191194    # create a builder for the fortran compiler for library compilation, if needed
    192195    def generate_obj(source, target, env, for_signature):
     
    199202    FortranCompile = env.fort
    200203    print 'Defining a FORTRAN builder'
    201 else:
    202     FortranCompile = Object
    203     env['FORTRANFLAGS'] = FORTflags
     204#else:
     205#    FortranCompile = Object
     206#    env['FORTRANFLAGS'] = FORTflags
    204207
    205208# Setup build Environment
Note: See TracChangeset for help on using the changeset viewer.