Changeset 1574


Ignore:
Timestamp:
Apr 25, 2008, 2:18:46 AM (17 years ago)
Author:
bird
Message:

Drop the GCC3xx setup. Fixed BEGINLIBPATH.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/envos2.cmd

    r1573 r1574  
    280280            exit 1;
    281281        end
    282         skBuildHost = EnvGet("BUILD_PLATFORM");
     282        skBuildHost = ToLower(EnvGet("BUILD_PLATFORM")); /* ToLower is for legacy reasons. */
    283283    end
    284284
     
    394394sOldBeginLibPath = EnvGet("BEGINLIBPATH");
    395395call EnvAddFront 0, "BEGINLIBPATH", translate(skBuildBinPath, '\', '/');
    396 sNewBeginLibPath = EnvGet("PATH");
     396sNewBeginLibPath = EnvGet("BEGINLIBPATH");
    397397call EnvSet 0, "BEGINLIBPATH", sOldBeginLibPath;
    398398if (fOptDbg <> 0) then say "dbg: BEGINLIBPATH="||sNewBeginLibPath;
     
    752752
    753753
    754 
    755 /*
    756  * EMX/GCC 3.x.x - this environment must be used 'on' the ordinary EMX.
    757  * Note! bin.new has been renamed to bin!
    758  * Note! make .lib of every .a! in 4OS2: for /R %i in (*.a) do if not exist %@NAME[%i].lib emxomf %i
    759  */
    760 GCC3xx: procedure expose aCfg. aPath. sPathFile sPathTools sPathToolsF
    761     parse arg sToolId,sOperation,fRM,fQuiet,sPathId
    762 
    763     /*
    764      * EMX/GCC main directory.
    765      */
    766     /*sGCC = PathQuery(sPathId, sToolId, sOperation);
    767     if (sGCC = '') then
    768         return 1;
    769     /* If config operation we're done now. */
    770     if (pos('config', sOperation) > 0) then
    771         return 0;
    772     */
    773     sGCC = sPathTools'\x86.os2\gcc\staged'
    774     sGCCBack    = translate(sGCC, '\', '/');
    775     sGCCForw    = translate(sGCC, '/', '\');
    776     chMajor     = '3';
    777     chMinor     = left(right(sToolId, 2), 1);
    778     chRel       = right(sToolId, 1);
    779     sVer        = chMajor'.'chMinor'.'chRel
    780 
    781     call EnvSet      fRM, 'PATH_IGCC',      sGCCBack;
    782     call EnvSet      fRM, 'CCENV',          'IGCC'
    783     call EnvSet      fRM, 'BUILD_ENV',      'IGCC'
    784     call EnvSet      fRM, 'BUILD_PLATFORM', 'OS2'
    785 
    786     call EnvAddFront fRM, 'BEGINLIBPATH',       sGCCBack'\lib;'
    787     call EnvAddFront fRM, 'PATH',               sGCCForw'/bin;'sGCCBack'\bin;'
    788     call EnvAddFront fRM, 'C_INCLUDE_PATH',     sGCCForw'/include'
    789     call EnvAddFront fRM, 'LIBRARY_PATH',       sGCCForw'/lib/gcc-lib/i386-pc-os2-emx/'sVer';'sGCCForw'/lib;'sGCCForw'/lib/mt;'
    790     call EnvAddFront fRm, 'CPLUS_INCLUDE_PATH', sGCCForw'/include;'
    791     call EnvAddFront fRm, 'CPLUS_INCLUDE_PATH', sGCCForw'/include/c++/'sVer'/backward;'
    792     call EnvAddFront fRm, 'CPLUS_INCLUDE_PATH', sGCCForw'/include/c++/'sVer'/i386-pc-os2-emx;'
    793     call EnvAddFront fRm, 'CPLUS_INCLUDE_PATH', sGCCForw'/include/c++/'sVer';'
    794     call EnvSet      fRM, 'PROTODIR',           sGCCForw'/include/cpp/gen'
    795     call EnvSet      fRM, 'OBJC_INCLUDE_PATH',  sGCCForw'/include'
    796     call EnvAddFront fRM, 'INFOPATH',           sGCCForw'/info'
    797     call EnvSet      fRM, 'EMXBOOK',            'emxdev.inf+emxlib.inf+emxgnu.inf+emxbsd.inf'
    798     call EnvAddFront fRM, 'HELPNDX',            'emxbook.ndx', '+', 1
    799 
    800     /*
    801      * Verify.
    802      */
    803     if (pos('verify', sOperation) <= 0) then
    804         return 0;
    805 
    806     if (rc = 0) then
    807         rc = CheckCmdOutput('g++ --version', 0, fQuiet, sVer);
    808     if (rc = 0) then
    809     do
    810         sVerAS = '2.14';
    811         rc = CheckCmdOutput('as --version', 0, fQuiet, 'GNU assembler 'sVerAS);
    812     end
    813 return rc;
    814 
    815 
    816 
    817754/**
    818755 *  Workaround for bug in CMD.EXE.
Note: See TracChangeset for help on using the changeset viewer.