]> granicus.if.org Git - sudo/commitdiff
Don't run the check_ttyname test if cross compiling.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 Mar 2014 15:16:21 +0000 (09:16 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 Mar 2014 15:16:21 +0000 (09:16 -0600)
src/Makefile.in

index 4e0019399e3e79ca9317e7b2d027a3b87d588954..065ebeccf989a415e75a0106488066981190befb 100644 (file)
@@ -184,7 +184,9 @@ cppcheck:
        cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c
 
 check: $(TEST_PROGS)
-       ./check_ttyname
+       @if test X"$(cross_compiling)" != X"yes"; then \
+           ./check_ttyname; \
+       fi
 
 clean:
        -$(LIBTOOL) --mode=clean rm -f $(PROGS) $(TEST_PROGS) *.lo *.o *.la *.a stamp-* core *.core core.*