This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


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

Patch for make check when cross compiling



When cross compiling, we shouldn't try to execute the test program.
I'm appending a patch to fix the missing cases.

Andreas

2000-04-06  Andreas Jaeger  <aj@suse.de>

	* intl/Makefile: Don't run do-gettext-test when cross-compiling.
	* stdlib/Makefile: Likewise for isomac.
	
============================================================
Index: intl/Makefile
--- intl/Makefile	2000/04/05 07:40:35	1.22
+++ intl/Makefile	2000/04/07 00:35:08
@@ -44,11 +44,13 @@
 
 include ../Rules
 
+ifeq (no,$(cross-compiling))
 ifeq (yes,$(build-shared))
 .PHONY: do-gettext-test
 tests: do-gettext-test
 do-gettext-test: tst-gettext.sh $(objpfx)tst-gettext
 	$(SHELL) -e $< $(common-objpfx) $(objpfx)
+endif
 endif
 
 $(objpfx)msgs.h: po2test.sed ../po/de.po
============================================================
Index: stdlib/Makefile
--- stdlib/Makefile	1999/12/27 21:48:18	1.58
+++ stdlib/Makefile	2000/04/07 00:35:09
@@ -126,9 +126,11 @@
 
 endif
 
+ifeq (no,$(cross-compiling))
 # Run a test on the header files we use.
 tests: $(objpfx)isomac
 	$(dir $<)$(notdir $<) '$(CC)' '-I../include -I.. $(+sysdep-includes)' > $<.out
 
 $(objpfx)isomac: isomac.c
 	$(native-compile)
+endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de
    currently: aj@oss.sgi.com

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