Ignore:
Timestamp:
Nov 19, 2022 8:32:33 PM (7 months ago)
Author:
toby
Message:

scons: static builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r5379 r5382  
    149149if ARGUMENTS.get('TMP'):
    150150   tmpdir = ARGUMENTS.get('TMP')
     151NISTcompileFlags = ''
    151152if FCompiler == 'gfortran':
    152153    if ARGUMENTS.get('LIBGCC', '').upper().startswith('T'):
    153154        LDFLAGS += ' -static-libgcc'
    154         print('LIBGCC')
     155        NISTcompileFlags += ' -static-libgcc'
     156        print('Static LIBGCC requested')
    155157    if ARGUMENTS.get('LIBGFORTRAN', '').upper().startswith('T'):
    156158        LDFLAGS += ' -static-libgfortran'
    157         print('LIBGfortran')
     159        NISTcompileFlags += ' -static-libgfortran'
     160        print('Static LIBGfortran requested')
    158161   
    159162#==========================================================================================
     
    374377    #exe = os.path.splitext(str(source[0]))[0] + EXEsuffix
    375378    exe = target
    376     cmd = os.path.join(FORTpath,FCompiler) + ' $SOURCE ' + NISTlib[0] + ' -o $TARGET'
     379    cmd = os.path.join(FORTpath,FCompiler) + ' $SOURCE ' + NISTlib[0] + ' -o $TARGET' + NISTcompileFlags
    377380    if sys.platform == "win32":
    378381        installcmd = "copy $TARGET " + InstallLoc
Note: See TracChangeset for help on using the changeset viewer.