This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [LTO] PATCH: fix builds when using --with-libelf


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@
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]