|Subject:||Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/2v2] [RESENT-INLINE] Use libtool instead of ar to create static libraries on Darwin.|
|Date:||Tue, 3 May 2016 20:07:40 -0400|
On May 3, 2016 9:50 AM, "Christopher Friedt" <address@hidden> wrote:
> On Tue, May 3, 2016 at 3:06 AM, Richard Henderson <address@hidden> wrote:
> > On 05/02/2016 03:10 PM, Christopher Friedt wrote:
> >> %.a:
> >> +ifdef CONFIG_DARWIN
> >> + $(call quiet-command,rm -f $@ && libtool -static -o $@ $^,"
> >> libtool $(TARGET_DIR)$@")
> >> +else
> >> $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR
> >> $(TARGET_DIR)$@")
> >> +endif
> > Does it work to use libtool -static everywhere?
One possibility for future-proofing the link stage that applies to most (all?) platforms that Qemu runs on would be to switch to libtool for all arch's and just adjust the "libtool flags" as necessary.
Would require checking for libtool.
Fallback to ar?
Sent from my Android
|[Prev in Thread]||Current Thread||[Next in Thread]|