-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WLIB: changed argument handling breaks some build scripts #1357
Comments
wlib command line processing was completely reworked that some difference from OW 1.9 can happen. |
It should be fixed now. |
I tested it! However, the FreeCOM build script is a little bit weired. It results in the following being executed:
I wonder why this even worked with WLIB 1.9, as I found no documentation of
But I think its not OpenWatcom to blame here. My guess is that the original author implemented it under Unix-like operating system and depended on the shell treating No idea if you consider this to be a compatibility problem, as the old behaviour does not seem to be documented anywhere? |
Thanks for wlib -l option functionality confirmation To make file, I am not sure if I understand the issue. Please give me more details what is expected etc. and what command line you use for wmake to be able understand issue. If it is not make file and it is some batch file then it could be issue because new wlib command line processing is more stricter (uses program generated command line parser). |
Sure :) https://github.com/FDOS/freecom/blob/ff675135ea9a43144ad3fd95f87c34663d9b6095/mkfiles/watcom.mak#L33 There $LIBLIST is defined to be And it is used for example here: With the intention of "commenting out" the given file. I admit its an ugly construct. However, the following works with WLIB 1.9 even if RUNNING DIRECTLY from CMD.EXE:
But it fails with WLIB 2:
This construct may be used because the original author wanted this to be portable between different tool chains, especially also with the Borland tools, where $LIBLIST ist defined to be |
Thanks. |
Yes I understand, as it is undocumented and inconsistent to the other programs. The |
It looks like the usage of # is undefined behaviour and works with older OW wlib and FDOS use it. I will check the # issue in details (looks like related to response file usage) and return back to you. I checked processing on both versions and # character is processed as comment in response file but not on command line. |
It is fixed in freecom by FDOS/freecom#113 |
In comparison to the 1.9 version, WLIB does not accept
-l
argument without a file name given. This breaks backward compatibility and some build scripts, like the FreeCOM build, which works with WLIB 1.9 but not v2. OW 1.9 WLIB defaults to<libname>.lst
for the listing file name.I am sure there was a good reason to change this. But perhaps it should be considered to still allow
-l
without a file name given.The text was updated successfully, but these errors were encountered: