On Thu, 30 Jul 2009, David Arturo Macias Corona wrote:

Hi,

> But using your change:
>    for %i in ( *$(OBJ_EXT) ) do @echo -+%i >> __lib__.tmp
> build fine
> I think problem is some kind of limit in make.exe, and/or Watcom

It's not related to Watcom because also gcc.cf needs such trick so I guess
it's the problem with GNU make port.

> With your change hbrtl.lib is created, building continue and then fail:
> =====================================================
> SYS0008: There is not enough memory available to process this command.
> All available memory is in use.
> SYS0008: There is not enough memory available to process this command.
> All available memory is in use.
> make[3]: *** [hbrun.exe] Error 1
> make[2]: *** [descend] Error 2
> make[1]: *** [hbrun] Error 2
> make: *** [utils] Error 2
> =====================================================
> and make_ow.log show:
> =====================================================
> make -C hbrun
> make[2]: Entering directory `E:/harbour907c/harbour/utils/hbrun'
> [E:\harbour907c\harbour\utils\hbrun]if not exist obj mkdir obj
> [E:\harbour907c\harbour\utils\hbrun]if not exist obj\os2 mkdir obj\os2
> [E:\harbour907c\harbour\utils\hbrun]if not exist obj\os2\watcom mkdir 
> obj\os2\watcom
> [E:\harbour907c\harbour\utils\hbrun]if not exist ..\..\bin\os2 mkdir 
> ..\..\bin\os2
> [E:\harbour907c\harbour\utils\hbrun]if not exist ..\..\bin\os2\watcom mkdir 
> ..\..\bin\os2\watcom
> make[3]: Entering directory 
> `E:/harbour907c/harbour/utils/hbrun/obj/os2/watcom'
> make[3]: Leaving directory 
> `E:/harbour907c/harbour/utils/hbrun/obj/os2/watcom'
> make[2]: Leaving directory `E:/harbour907c/harbour/utils/hbrun'
> make[1]: Leaving directory `E:/harbour907c/harbour/utils'
> =====================================================
> I am using make381

I also looks like make problem.

Try to replace:

   LD_RULE = $(link_exe_file) $(HB_USER_LDFLAGS)

with:

   empty:=
   space:= $(empty) $(empty)
   comma:= ,
   LDFILES = $(subst $(space),$(comma) ,$(^F))
   LDLIBS  = $(subst $(space),$(comma) ,$(strip $(LINKLIBS) $(RDDLIBS) 
$(GTLIBS)))
   LD_RULE = $(LD) $(LDFLAGS) $(HB_USER_LDFLAGS) NAME $(EXE_DIR)/$@ FILE 
$(LDFILES)
   ifneq ($(LDLIBS),)
      LD_RULE += LIB $(LDLIBS)
   endif

It should help.

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

Reply via email to