From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axkMu-0001S8-9N for qemu-devel@nongnu.org; Tue, 03 May 2016 20:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axkMi-0005XD-LK for qemu-devel@nongnu.org; Tue, 03 May 2016 20:08:38 -0400 MIME-Version: 1.0 In-Reply-To: References: <1462237852-61856-1-git-send-email-chrisfriedt@gmail.com> <0b165339-9dde-57f8-959d-22122390ca0b@twiddle.net> Date: Tue, 3 May 2016 20:07:40 -0400 Message-ID: From: Christopher Friedt Content-Type: multipart/alternative; boundary=001a113de920a9962c0531f90339 Subject: Re: [Qemu-devel] [PATCH 1/2v2] [RESENT-INLINE] Use libtool instead of ar to create static libraries on Darwin. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: QEMU Trivial , "Michael S. Tsirkin" , famz@redhat.com, QEMU Developers --001a113de920a9962c0531f90339 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On May 3, 2016 9:50 AM, "Christopher Friedt" wrote: > > On Tue, May 3, 2016 at 3:06 AM, Richard Henderson 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? =C2=A9 Sent from my Android --001a113de920a9962c0531f90339 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 3, 2016 9:50 AM, "Christopher Friedt" <chrisfriedt@gmail.com> wrote:
>
> On Tue, May 3, 2016 at 3:06 AM, Richard Henderson <rth@twiddle.net> wrote:
> > On 05/02/2016 03:10 PM, Christopher Friedt wrote:
> >>
> >>=C2=A0 %.a:
> >> +ifdef CONFIG_DARWIN
> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0$(call quiet-command,rm -f $@ &am= p;& libtool -static -o $@ $^,"
> >> libtool=C2=A0 =C2=A0 $(TARGET_DIR)$@")
> >> +else
> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$(call quiet-command,rm -f $= @ && $(AR) rcs $@ $^,"=C2=A0 AR
> >> $(TARGET_DIR)$@")
> >> +endif
> >>
> >
> > Does it work to use libtool -static everywhere?

One possibility for future-proofing the link stage that appl= ies to most (all?) platforms that Qemu runs on would be to switch to libtoo= l for all arch's and just adjust the "libtool flags" as neces= sary.

Would require checking for libtool.

Fallback to ar?

=C2=A9

Sent from my Android

--001a113de920a9962c0531f90339--