Changeset 18


Ignore:
Timestamp:
Nov 17, 2005, 5:28:04 PM (20 years ago)
Author:
dmik
Message:

Setup GCC before everything else, to prevent it from possible reordering of some essential paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r17 r18  
    355355    call lineout G.!QtCmd, '    call RxFuncAdd ''SysBootDrive'', ''RexxUtil'', ''SysBootDrive'''
    356356    call lineout G.!QtCmd, ''
     357    /*
     358     *  setup GCC before everything else, to prevent it from possible reordering
     359     *  of some essential paths
     360     */
     361    call lineout G.!QtCmd, '/* setup the GCC environment */'
     362    call lineout G.!QtCmd, '''call'' GCC_PATH''\bin\gccenv.cmd'' GCC_PATH ''VAC308'''
     363    call lineout G.!QtCmd, ''
    357364    call lineout G.!QtCmd, 'call value ''QMAKESPEC'', QMAKESPEC, ''OS2ENVIRONMENT'''
    358365    call lineout G.!QtCmd, 'call value ''QTDIR'', QTDIR, ''OS2ENVIRONMENT'''
     
    361368    call lineout G.!QtCmd, 'call AddPathEnv ''BEGINLIBPATH'', QTDIR''\bin'''
    362369    call lineout G.!QtCmd, ''
     370    /*
     371     *  the order of variables below is important! GCCPath must come first
     372     *  in order to appear last in PATH (to ensure that, on the contrary, paths
     373     *  to the linker and to the make tool choosen by the user are always at
     374     *  the beginning)
     375     */
    363376    call ConfigureCompiler_GenAddPathEnv 'PATH',,
    364377        Opt.!GCCPath.!addPath';'Opt.!ILINKPath.!addPath';'Opt.!GNUMAKEPath.!addPath
     
    372385    call lineout G.!QtCmd, 'call AddPathEnv ''LIBRARY_PATH'', SysBootDrive()''\OS2\DLL'''
    373386    call lineout G.!QtCmd, 'call AddPathEnv ''LIBRARY_PATH'', SysBootDrive()''\MPTN\DLL'''
    374     call lineout G.!QtCmd, ''
    375     call lineout G.!QtCmd, '/* setup the GCC environment */'
    376     call lineout G.!QtCmd, '''call'' GCC_PATH''\bin\gccenv.cmd'' GCC_PATH ''VAC308'''
    377387    call lineout G.!QtCmd, ''
    378388    call lineout G.!QtCmd, 'parse arg args'
Note: See TracChangeset for help on using the changeset viewer.