Changeset 1574
- Timestamp:
- Apr 25, 2008, 2:18:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/envos2.cmd
r1573 r1574 280 280 exit 1; 281 281 end 282 skBuildHost = EnvGet("BUILD_PLATFORM");282 skBuildHost = ToLower(EnvGet("BUILD_PLATFORM")); /* ToLower is for legacy reasons. */ 283 283 end 284 284 … … 394 394 sOldBeginLibPath = EnvGet("BEGINLIBPATH"); 395 395 call EnvAddFront 0, "BEGINLIBPATH", translate(skBuildBinPath, '\', '/'); 396 sNewBeginLibPath = EnvGet(" PATH");396 sNewBeginLibPath = EnvGet("BEGINLIBPATH"); 397 397 call EnvSet 0, "BEGINLIBPATH", sOldBeginLibPath; 398 398 if (fOptDbg <> 0) then say "dbg: BEGINLIBPATH="||sNewBeginLibPath; … … 752 752 753 753 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 %i759 */760 GCC3xx: procedure expose aCfg. aPath. sPathFile sPathTools sPathToolsF761 parse arg sToolId,sOperation,fRM,fQuiet,sPathId762 763 /*764 * EMX/GCC main directory.765 */766 /*sGCC = PathQuery(sPathId, sToolId, sOperation);767 if (sGCC = '') then768 return 1;769 /* If config operation we're done now. */770 if (pos('config', sOperation) > 0) then771 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'.'chRel780 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', '+', 1799 800 /*801 * Verify.802 */803 if (pos('verify', sOperation) <= 0) then804 return 0;805 806 if (rc = 0) then807 rc = CheckCmdOutput('g++ --version', 0, fQuiet, sVer);808 if (rc = 0) then809 do810 sVerAS = '2.14';811 rc = CheckCmdOutput('as --version', 0, fQuiet, 'GNU assembler 'sVerAS);812 end813 return rc;814 815 816 817 754 /** 818 755 * Workaround for bug in CMD.EXE.
Note:
See TracChangeset
for help on using the changeset viewer.