Hi Przemek,
* config/w32/owatcom.cf
* Removed 'debug all' linker option to make executable sizes
significantly smaller by default. If you need debug info,
use 'L_USR=debug all'.
; NOTE: I'd suggest doing the same for other platform supported
by owatcom. If there are no objections I can do this.
Removing debug information from final binaries can be done in any
moment by 'wstrip' so this is not a real problem for users. BTW
support
It was a problem to solve for builders because special
logic was needed for the watcom make files to strip
debug info, which would be better to be avoided. Plus
we have debug off as default for other compilers. Didn't
know about wstrip, thanks for it, I've used GNU strip
which worked well on watcom executables.
If someone has the time for it, it would be certainly
nice to see HB_BUILD_DEBUG=yes (or equivalent) in GNU
make files, too.
for L_USR you should add to owatcom.cf because now it does not exists
because owatcom.cf define its own LD_RULE.
Okay.
More important is debug information enabled during compilation. Some
compiler does not produce the same code when debug is enabled and does
not use all optimizations. AFAIK only GCC generates fully separated
debug information without any impact on generated code and it can be
fully and cleanly removed by strip.
Nice solution from GCC.
To disable debug information in OpenWatcom build remove -d? (-d1)
switch
from CPPFLAGS or change it to -d0. C_USR is working here.
I think that you can sync it with other platforms but do not forget
about adding L_USR support if LD_RULE is redefined.
Thanks for this info, I'll do it ASAP.
What's you opinion on removing old 'HB_COMPILER=watcom' support?
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour