This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] GDB: PPC: sim: fix cross-compilation


On Monday, February 17, 2014 22:09:22 Aaro Koskinen wrote:
> When cross-compiling GDB for PPC, there's a prerequisite "-lz" for psim
> that results in a build failure. With such prerequisite, GNU Make will
> try to search the library from build machine's /usr/lib which is wrong.
> On 64-bit Linux build machines the compilation will fail because of this.
> This has been also reported on other operating systems, see e.g.
> https://sourceware.org/bugzilla/show_bug.cgi?id=12202.
> 
> The fix is to delete system library linker options from
> prerequisite/dependency list as they are not really useful anyway.
> 
> 
> 2014-02-17  Aaro Koskinen  <aaro.koskinen@iki.fi>
> 
> 	* PR gdb/12202. Fix cross-compilation on PPC by removing compiler
> 	library options from psim dependencies.

correct format for this i think would be:
+2014-02-17  Aaro Koskinen  <aaro.koskinen@iki.fi>
+
+	PR gdb/12202
+	* Makefile.in (psim): Delete $(LIBS) from dependency.

i've pushed our fix with that entry.  thanks!
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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