This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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] Fix for psim build failure due to -lz in gdb-7.2


Horst, All,

On Friday 31 December 2010 18:15:28 Horst Kronstorfer wrote:
> # HG changeset patch
> # User Horst Kronstorfer <horst.kronstorfer@aon.at>
> # Date 1293747712 -3600
> # Node ID e5c17f40a4d1a6ca140030dfdbfd98ec16f15f7c
> # Parent  cb0f625b3f9f704140aaeed024baac05e6b27df0
> Fix for psim build failure due to -lz in gdb-7.2.

Please, add your Signed-off-by before I can commit.

> diff -r cb0f625b3f9f -r e5c17f40a4d1 patches/gdb/7.2/100-sim-ppc-lz-fix.patch
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/patches/gdb/7.2/100-sim-ppc-lz-fix.patch	Thu Dec 30 23:21:52 2010 +0100
> @@ -0,0 +1,15 @@
> +Fix for psim build failure due to -lz
> +
> +See http://sourceware.org/bugzilla/show_bug.cgi?id=12202

This bug report has no comment, so it is difficult to see if it is
pertinent, and if the suggested fix is good...

> +--- gdb-7.2.orig/sim/ppc/Makefile.in
> ++++ gdb-7.2/sim/ppc/Makefile.in
> +@@ -551,7 +551,7 @@
> + PACKAGE_OBJ = @sim_pk_obj@
> + 
> + 
> +-psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS) $(LIBINTL_DEP)
> ++psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP)

... but it seems legit not to depend on system libs.

> + 	$(CC) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
> + 
> + run: psim

I will apply this tomorrow, unless someone chimes in.
Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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