[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using ld instead of ar

From: Lars Hecking
Subject: Re: Using ld instead of ar
Date: Fri, 18 Jan 2002 23:09:49 +0000
User-agent: Mutt/1.3.26i

Tom Tromey writes:
> >>>>> "Itay" == Itay Meiri <address@hidden> writes:
> Itay> My project is built from several source subdirs. By default
> Itay> automake is using ar to build a single 'somelib.a' in every
> Itay> subdir before the final link. How can I make it use ld instead
> Itay> of ar?  I tried using libtool but it didn't help.
> Basically, you can't.
> I'm not sure I understand what you're attempting.
> If you just want to link all these things into a single large program,
> try using a newer automake.  Then you can simply list the subdirectory
> source files in your top-level, and skip creating
> convenience archives.

 He means

$ man ld
     -r      Produce relocatable object file, suitable for another pass
             through ld.

 The Linux kernel sources uses this a lot IIRC.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]