ow-build: use wlink directly without utils/wlinker.bat and ms2wlink #181
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this construct is used to create kernel.exe only
now LINK variable contains real linker name with basic options that can be used anywhere and XLINK and XLINKFILE contains transformed linker command spcific for kernel build only for Borland tools response file is created as before and for OW direct command line is used without useless double transformation
I think utils/wlinker.bat solution was introduced to fix problem with DOS long line and probably as result of port original Borland build response file to OW.
OW is capable to pass long command line to tools through environment variable. OW wmake includes feature on DOS to overcome this issue by passing command line through auxiliary environment variable. this feature is control in make files by start character (*) before tool name. Wmake create internaly auxiliary environment variable with original command line arguments and pass it as @<aux. name> argument on tool command line, it is used only on DOS because for other OS is not command line limit for 127 characters
this feature can be used generally for most of OW tools as compilers, linker, librarian etc. and it was already used for wcc in kernel make files