This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO] PATCH: fix builds when using --with-libelf
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 13 Jul 2009 14:48:55 +1000
- Subject: Re: [LTO] PATCH: fix builds when using --with-libelf
- References: <1247459982.14027.2.camel@helios>
On Mon, 2009-07-13 at 14:39 +1000, Ben Elliston wrote:
> When building using --with-libelf, the lto1 binary was not linking.
> With this patch, if $(LIBELFLIBS) is empty, make will just pass the
> trailing -lelf instead. OK for the branch?
I discovered that this was the wrong approach. Here is a better patch
that I think qualifies as obvious. Committed.
Cheers, Ben
2009-07-13 Ben Elliston <bje@au.ibm.com>
* Makefile.in (BACKENDLIBS): Change LIBELFLIB to LIBELFLIBS.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 149541)
+++ Makefile.in (working copy)
@@ -987,7 +987,7 @@ BUILD_LIBDEPS= $(BUILD_LIBIBERTY)
LIBS = @LIBS@ $(CPPLIB) $(LIBINTL) $(LIBICONV) $(LIBIBERTY) $(LIBDECNUMBER) \
$(HOST_LIBS)
BACKENDLIBS = $(CLOOGLIBS) $(PPLLIBS) $(GMPLIBS) $(PLUGINLIBS) $(HOST_LIBS) \
- $(ZLIB) $(LIBELFLIB)
+ $(ZLIB) $(LIBELFLIBS)
# Any system libraries needed just for GNAT.
SYSLIBS = @GNAT_LIBEXC@