Viktor:

>Thanks David, I'll commit it. Please make sure to test it, as copying
>code from e-mail body is quite error prone due to required manual
>reformat.

>2009-10-06 18:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
>  * config/os2/gcc.mk
>    % Deleted OS/2 make bug workarounds from OMF specific code.
>      Submitted by David Arturo Macias Corona.
>      Please test/review.

It is working fine


>Any takers to remove OS/2 watcom hacks?

I tested it before but I was waiting until os2gcc-OMF stabilization
Now we are at third stage

There are two watcom "hacks", for LD_RULE and AR_RULE
Both workarounds were added by Przemek to solve OS/2-Watcom Harbour build (end of July 2009, "Harbour under OS/2 - eCS")

Second one (AR_RULE) are solved removing entire section in config\common\watcom.mk
-----------------
ifeq ($(HB_SHELL),os2)
[...]
endif
-----------------


After it we have two pendings:

a) First OS/2 workaround: LD_RULE using comma, LDFILES_COMMA, LDLIBS_COMMA
This are now as "general way" in config\common\watcom.mk
For OS/2 LD_RULE can be used in two ways:
 a.1) Using general way
 a.2) Using original way based on:
     define link_file
     define link_lib
     define link_exe_file
   either in OS/2 section in common\watcom.mk or os2\watcom.mk
 Both ways work fine

Should be general way mantained as common one for Owatcom ?

b) Drop config\common\watcom.mk
This file mainly contain code for OS/2 and DOS
Removing both "hacks" for OS/2 then it will serve to DOS only which can be readded to config\dos\watcom.mk

Rest of settings can be readded to original compiler\watcom.mk files

so config\common\watcom.mk can be removed and watcom will return to plain structure as gcc have

David Macias


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to