On Fri, 08 Aug 2008, Szakáts Viktor wrote:

Hi Viktor,

> I've added L_USR, I've also upgraded to XCode 3.1 (didn't
> make a difference), and I'm now trying to find out how to
> use libtool to extract .o files from an .a one (this is the
> task if I understand correctly). No results so far.
> The only "result" I got is that there is nothing special in
> hbextern, it's just the first file on the list to be extracted,
> and the process is choking on it. Trying any other multi-target
> .a file gives the same error.

Maybe some other tool. libtool is only wrapper to native platform
tools and it does not support whole functionality.
Please check ar parameters and maybe releated programas.
   libtool --config
should show the configuration. Look for used archiver.
Propably for multiarch libraries different program is used
and it should be able to extract object files.
In fact we should add second build pass for shared library
to GNU make which will use different compile time switches
and will create shared library directly from object files.
But it's hard to touch sth what is used for such many platforms.

> >Each platform uses it's own scripts. AFAIR for SunOS in
> >config/sunos/gcc.cf was strictly necessary to remove the
> >space after CC_OUT = -o
> Okay, I don't mean to make wide changes here,
> but if you have any idea how to protect the
> ending space in Darwin gcc.cf, it'd be great. I had no
> success with CC_OUT = "-o " and CC_OUT = '-o '.

   CC_OUT = -o$(subst x,x, )

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

Reply via email to