On Fri, 19 Jun 2009, Szak�ts Viktor wrote:
Hi,
> Thanks Guy.
> Maybe it's simpler to just add HB_CCPREFIX support
> to that AR macro in gcc.cf:
> AR = ${HB_CCPREFIX}ar
> And set HB_CCPREFIX accordingly:
> export HB_CCPREFIX=mipsel-linux-gnu-
> This envvar should also make hbmk2 work. Can you try?
> In case we made these work, we can probably add a new
> target called linux/gccmips (with .cf and full hbmk2 support).
It should be enough to change in linux/gcc.cf CC, LD and AR definitions:
CC = $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)
LD = $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)
AR = $(HB_CCPREFIX)ar
and then use:
export HB_CCPREFIX=mipsel-linux-gnu-
It should work without any other modifications in source core code and
probably we should commit such modification. It can be usable also in few
other situations.
It should be also possible to create 'gcc' and 'ar' links to
mipsel-linux-gnu-gcc and mipsel-linux-gnu-ar and then set this directory
in PATH before path with native 'gcc' and 'ar' binaries.
This will work with existing code without any modifications but it does
not allow to use two passes (native and cross) compilation which can be
usable in some situations, f.e. building binaries without installed native
harbour.
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour