From: Ian Jackson Subject: Re: [PATCH] LDFLAGS in link lines Date: Wed, 16 Jan 2008 16:32:57 +0000 Message-ID: <18318.12729.86771.38756@mariner.uk.xensource.com> References: <18318.12012.8765.272568@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="O5o9McgiGt" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18318.12012.8765.272568@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --O5o9McgiGt Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit iwj writes ("[PATCH] LDFLAGS in link lines"): > LDFLAGS is not honoured by a couple of link lines in tools/*, but > should be. Here is some more of the same in a few other Makefiles. This is part of tools-rpath.diff in the Debian package. Signed-off-by: Ian Jackson This patch is extracted directly from the Debian package prepared by Bastian Blank. Debian's svn logs show a commit by Bastian and no prior history, and there is a corresponding changelog entry. I think it's safe to say that Bastian wrote the patch. --O5o9McgiGt Content-Type: text/plain Content-Description: $(LDFLAGS) in some more link lines Content-Disposition: inline; filename="tools-ldflags-2.diff" Content-Transfer-Encoding: 7bit --- xen-unstable.orig/tools/xentrace/Makefile +++ xen-unstable/tools/xentrace/Makefile @@ -52,6 +52,6 @@ $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) %: %.c $(HDRS) Makefile - $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) $(LDFLAGS) -lxenctrl xentrace_%: %.c $(HDRS) Makefile - $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) $(LDFLAGS) -lxenctrl --- xen-unstable.orig/tools/blktap/drivers/Makefile +++ xen-unstable/tools/blktap/drivers/Makefile @@ -49,7 +49,7 @@ qcow-util: img2qcow qcow2raw qcow-create img2qcow qcow2raw qcow-create: %: $(BLK-OBJS) - $(CC) $(CFLAGS) -o $* $(BLK-OBJS) $*.c $(AIOLIBS) $(LIBS) + $(CC) $(CFLAGS) -o $* $(BLK-OBJS) $*.c $(LDFLAGS) $(AIOLIBS) $(LIBS) install: all $(INSTALL_PROG) $(IBIN) $(QCOW_UTIL) $(VHD_UTIL) $(DESTDIR)$(INST_DIR) --- xen-unstable.orig/tools/blktap/lib/Makefile +++ xen-unstable/tools/blktap/lib/Makefile @@ -52,7 +52,7 @@ libblktap.a: $(OBJS) $(CC) $(CFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,$(SONAME) $(SHLIB_CFLAGS) \ - -L$(XEN_XENSTORE) -l xenstore \ + -L$(XEN_XENSTORE) $(LDFLAGS) -l xenstore \ -o libblktap.so.$(MAJOR).$(MINOR) $^ $(LIBS) ln -sf libblktap.so.$(MAJOR).$(MINOR) libblktap.so.$(MAJOR) ln -sf libblktap.so.$(MAJOR) libblktap.so --O5o9McgiGt Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --O5o9McgiGt--