http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/resolv/Makefile.diff?r1=1.41&r2=1.42&cvsroot=glibc Fixes /bin/sh: /crosstool-0.15/build/powerpc-750-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc/elf/ld.so.1: cannot execute binary file make[2]: *** [/crosstool-0.15/build/powerpc-750-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc/resolv/tst-leaks.out] Error 126 2003-03-01 Andreas Schwab * resolv/Makefile (tests): Don't depend on $(objpfx)mtrace-tst-leaks when cross compiling. =================================================================== RCS file: /cvs/glibc/libc/resolv/Makefile,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- libc/resolv/Makefile 2003/02/23 03:35:39 1.41 +++ libc/resolv/Makefile 2003/03/01 22:15:00 1.42 @@ -93,6 +93,8 @@ tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace $(objpfx)mtrace-tst-leaks: $(objpfx)tst-leaks.out $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks.mtrace > $@ +ifeq (no,$(cross-compiling)) ifneq (no,$(PERL)) tests: $(objpfx)mtrace-tst-leaks endif +endif