From c4d635bf4ae49a452bd01d7adf9c4bbd57c9f02f Mon Sep 17 00:00:00 2001 From: miod Date: Tue, 26 May 2015 20:15:54 +0000 Subject: [PATCH] Better cross-compilation check --- libexec/ld.so/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) $@ -- 2.20.1