From: miod Date: Tue, 26 May 2015 20:15:54 +0000 (+0000) Subject: Better cross-compilation check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c4d635bf4ae49a452bd01d7adf9c4bbd57c9f02f;p=openbsd Better cross-compilation check --- diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index 223e2e62e9d..08da3161519 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.55 2015/02/08 00:15:22 uebayasi Exp $ +# $OpenBSD: Makefile,v 1.56 2015/05/26 20:15:54 miod Exp $ SUBDIR=ldconfig ldd MAN= ld.so.1 @@ -47,7 +47,7 @@ $(test_prog): $(PROG): $(test_prog) $(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) $(OBJS) $(LDADD) -.ifndef CROSSDIR +.ifndef HOSTCC ulimit -c 0; [ "`${.OBJDIR}/$(test_prog) ok`" = ok ] .endif cp $(candidate) $@