On Mon, 23 Nov 2009, Tamas TEVESZ wrote: > > I still to think that it's good idea to encode workarounds for problems > > with other packages into harbour core code. IMHO much simpler temporary > > solution is: > > ln -sf /usr/bin/ar /usr/bin/llvm/ar > > from root account until someone will have not create llvm-gcc packages with > > llvm-gcc which can work with llvm-ar correctly. > they work together correctly, if they are configured to work together > correctly. my first stab, they were not. i'm much further now, and > almost have a complete compilation+link cycle without workarounds like > above (as i slowly start to understand how llvm + frontends work).
So I hope that in next releases llvm-gcc will be configured to work correctly with .a files created by llvm-ar. I still do not see any reasons to touch Harbour. > > Can you explain the above. I do not understand it. > i do not really understand what is it you do not understand. > HB_CCPREFIX is just that, prepending some prefix to the compiler and > binutils and stuff names. in this llvmgcc case, modifying several > compiler options is also needed, so setting only prefix is not enough. And we have HB_CCPREFIX because it's standard method of using different GCC based compilers in single system. I.e. for Suse Linux we have over 30 different GCC based compilers which like LLVM can be used in such way and this list is systematically growing up. IMHO HB_CCPREFIX is very nice solution to not introduce explicit support for each of them into Harbour core code and then update them to keep such builds alive. Instead using HB_CCPREFIX user can easy compile Harbour using any GCC based compiler installed in his system when he need it. I still do not understand why you said: "HB_CCPREFIX seems absolutely not the way to go" For me it's prefect solution. Of course of some configuration switches are still missing to easy use different GCC based compilers using HB_CCPREFIX then we should add them. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour