Received: from eggs.gnu.org ([140.186.70.92]:55823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvFeo-0006JD-OG for qemu-devel@nongnu.org; Sun, 21 Aug 2011 17:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvFen-0004FB-CR for qemu-devel@nongnu.org; Sun, 21 Aug 2011 17:34:14 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:54992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvFen-0004F3-1l for qemu-devel@nongnu.org; Sun, 21 Aug 2011 17:34:13 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4E5036E0.7030100@comstyle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 21 Aug 2011 23:34:09 +0200 References: <20110814003014.GA8665@rox.home.comstyle.com> <4E5036E0.7030100@comstyle.com> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH] Improvements to libtool support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brad Cc: Blue Swirl , Alon Levy , QEMU Developers Am 21.08.2011 um 00:36 schrieb Brad: > On 13/08/11 8:30 PM, Brad wrote: >> Improvements to the libtool support in QEMU. Replace hard coded >> libtool in the infrastructure with $(LIBTOOL) and allow >> overriding the libtool binary used via the configure >> script. >> >> Signed-off-by: Brad Smith > > Alon? Looks okay to me, didn't test it though. Reviewed-by: Andreas F=E4rber >> --- >> Makefile.objs | 2 +- >> configure | 5 ++--- >> libcacard/Makefile | 10 +++++----- >> rules.mak | 2 +- >> 4 files changed, 9 insertions(+), 10 deletions(-) >> >> diff --git a/Makefile.objs b/Makefile.objs >> index 16eef38..6c0be08 100644 >> --- a/Makefile.objs >> +++ b/Makefile.objs >> @@ -369,7 +369,7 @@ trace-dtrace.lo: trace-dtrace.dtrace >> @echo "missing libtool. please install and rerun configure."; =20= >> exit 1 >> else >> trace-dtrace.lo: trace-dtrace.dtrace >> - $(call quiet-command,libtool --mode=3Dcompile --tag=3DCC dtrace = -o $@ =20 >> -G -s $<, " lt GEN trace-dtrace.o") >> + $(call quiet-command,$(LIBTOOL) --mode=3Dcompile --tag=3DCC = dtrace -o =20 >> $@ -G -s $<, " lt GEN trace-dtrace.o") >> endif >> >> simpletrace.o: simpletrace.c $(GENERATED_HEADERS) >> diff --git a/configure b/configure >> index 6c77067..eb7497b 100755 >> --- a/configure >> +++ b/configure >> @@ -224,6 +224,7 @@ cc=3D"${CC-${cross_prefix}gcc}" >> ar=3D"${AR-${cross_prefix}ar}" >> objcopy=3D"${OBJCOPY-${cross_prefix}objcopy}" >> ld=3D"${LD-${cross_prefix}ld}" >> +libtool=3D"${LIBTOOL-${cross_prefix}libtool}" >> strip=3D"${STRIP-${cross_prefix}strip}" >> windres=3D"${WINDRES-${cross_prefix}windres}" >> pkg_config=3D"${PKG_CONFIG-${cross_prefix}pkg-config}" >> @@ -1341,10 +1342,8 @@ fi >> ########################################## >> # libtool probe >> >> -if ! has libtool; then >> +if ! has $libtool; then >> libtool=3D >> -else >> - libtool=3Dlibtool >> fi >> >> ########################################## >> diff --git a/libcacard/Makefile b/libcacard/Makefile >> index fe9747a..56dc974 100644 >> --- a/libcacard/Makefile >> +++ b/libcacard/Makefile >> @@ -37,7 +37,7 @@ install-libcacard: >> @echo "libtool is missing, please install and rerun configure"; =20= >> exit 1 >> else >> libcacard.la: $(libcacard.lib-y) $(QEMU_OBJS_LIB) >> - $(call quiet-command,libtool --mode=3Dlink --quiet --tag=3DCC = $(CC) $=20 >> (libcacard_libs) -lrt -rpath $(libdir) -o $@ $^," lt LINK $@") >> + $(call quiet-command,$(LIBTOOL) --mode=3Dlink --quiet --tag=3DCC = $=20 >> (CC) $(libcacard_libs) -lrt -rpath $(libdir) -o $@ $^," lt LINK $@") >> >> libcacard.pc: $(libcacard_srcpath)/libcacard.pc.in >> sed -e 's|@LIBDIR@|$(libdir)|' \ >> @@ -53,10 +53,10 @@ install-libcacard: libcacard.pc libcacard.la =20 >> vscclient >> $(INSTALL_DIR) "$(DESTDIR)$(libdir)/pkgconfig" >> $(INSTALL_DIR) "$(DESTDIR)$(libcacard_includedir)" >> $(INSTALL_DIR) "$(DESTDIR)$(bindir)" >> - libtool --mode=3Dinstall $(INSTALL_PROG) vscclient "$(DESTDIR)$=20= >> (bindir)" >> - libtool --mode=3Dinstall $(INSTALL_DATA) libcacard.la = "$(DESTDIR)$=20 >> (libdir)" >> - libtool --mode=3Dinstall $(INSTALL_DATA) libcacard.pc = "$(DESTDIR)$=20 >> (libdir)/pkgconfig" >> + $(LIBTOOL) --mode=3Dinstall $(INSTALL_PROG) vscclient = "$(DESTDIR)$=20 >> (bindir)" >> + $(LIBTOOL) --mode=3Dinstall $(INSTALL_DATA) libcacard.la = "$(DESTDIR)=20 >> $(libdir)" >> + $(LIBTOOL) --mode=3Dinstall $(INSTALL_DATA) libcacard.pc = "$(DESTDIR)=20 >> $(libdir)/pkgconfig" >> for inc in *.h; do \ >> - libtool --mode=3Dinstall $(INSTALL_DATA) = $(libcacard_srcpath)/$=20 >> $inc "$(DESTDIR)$(libcacard_includedir)"; \ >> + $(LIBTOOL) --mode=3Dinstall $(INSTALL_DATA) = $(libcacard_srcpath)/$=20 >> $inc "$(DESTDIR)$(libcacard_includedir)"; \ >> done >> endif >> diff --git a/rules.mak b/rules.mak >> index 1a2622c..884d421 100644 >> --- a/rules.mak >> +++ b/rules.mak >> @@ -22,7 +22,7 @@ ifeq ($(LIBTOOL),) >> @echo "missing libtool. please install and rerun configure"; = exit 1 >> else >> %.lo: %.c >> - $(call quiet-command,libtool --mode=3Dcompile --quiet --tag=3DCC = $=20 >> (CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -=20= >> o $@ $<," lt CC $@") >> + $(call quiet-command,$(LIBTOOL) --mode=3Dcompile --quiet = --tag=3DCC $=20 >> (CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -=20= >> o $@ $<," lt CC $@") >> endif >> >> %.o: %.S > > > --=20 > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > >