This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Patch for make check when cross compiling
- To: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- Subject: Patch for make check when cross compiling
- From: Andreas Jaeger <aj at oss dot sgi dot com>
- Date: 06 Apr 2000 17:35:28 -0700
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