[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2v2] [RESENT-INLINE] Use libtool instead of ar
Re: [Qemu-devel] [PATCH 1/2v2] [RESENT-INLINE] Use libtool instead of ar to create static libraries on Darwin.
Tue, 3 May 2016 09:50:15 -0400
On Tue, May 3, 2016 at 3:06 AM, Richard Henderson <address@hidden> wrote:
> On 05/02/2016 03:10 PM, Christopher Friedt wrote:
>> +ifdef CONFIG_DARWIN
>> + $(call quiet-command,rm -f $@ && libtool -static -o $@ $^,"
>> libtool $(TARGET_DIR)$@")
>> $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR
> Does it work to use libtool -static everywhere?
That *would* be nice... yeah, it would be nice if Apple's tools could
work the same as *all* of the other unices out there. Unfortunately,
that's not the case, since at least GNU libtool does *not* accept the
To be honest, if it weren't for the man page for libtool on Mac OS X
 dating all the way back to Snow Leopard saying that libtool is the
preferred tool on Mac for creating static archives, I'm left wondering
if this is just a massive oversight / bug in Apple's ld64.