On Mon, 10 Aug 2009, Tamas TEVESZ wrote:

Hi,

>  >  > >     HB_CMP = suncc
>  >  > > instead of CC and cc. With above version you do not have keep path to
>  >  > > Sun C compiler at the beginning of PATH envvar so both GCC and Sun C
>  >  > > builds can be easy used. It should work also in SunOS. I hope Tomas
>  >  > > can confirm it.
>  >  > Thanks, I'll do this in next commit.
>  > and now you broke it ;)
> forget it. of course you didn't.

In such case we should also update compiler name used in postinst.sh.
Now we have:

   if [ "$HB_ARCHITECTURE" = "sunos" ]; then
       sed -e "s/gcc -shared -fPIC/cc -G -xcode=pic32 ${HB_ISAOPT}/g" 
"${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \
       chmod 755 "${hb_mkdyn}"
   else
       sed -e "s/gcc -shared -fPIC/cc -G -KPIC ${HB_ISAOPT}/g" 
"${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \
       chmod 755 "${hb_mkdyn}"
   fi

so we can also remove platform switches and replace above statements by
simple:

   sed -e "s/gcc -shared -fPIC/suncc -G -KPIC ${HB_ISAOPT}/g" 
"${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \
   chmod 755 "${hb_mkdyn}"

It should work if platform dependent parameters from different sunpro*.cf
files are set using HB_ISAOPT var or by HB_USER_LDFLAGS envvar.
Of course we have to remove any link time options which force
platform from pure sunpro.cf

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to