From 50bd1dd5ac254d9149ead693ebb2d7894cf31a45 Mon Sep 17 00:00:00 2001 From: Masao Uebayashi Date: Sun, 8 Feb 2015 00:15:23 +0000 Subject: Fix cross-build. OK jsing@ miod@ guenther@ deraadt@ --- libexec/ld.so/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libexec/ld.so') diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index 4de73430eb6..223e2e62e9d 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.54 2014/12/22 19:14:59 deraadt Exp $ +# $OpenBSD: Makefile,v 1.55 2015/02/08 00:15:22 uebayasi Exp $ SUBDIR=ldconfig ldd MAN= ld.so.1 @@ -47,7 +47,9 @@ $(test_prog): $(PROG): $(test_prog) $(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) $(OBJS) $(LDADD) +.ifndef CROSSDIR ulimit -c 0; [ "`${.OBJDIR}/$(test_prog) ok`" = ok ] +.endif cp $(candidate) $@ .endif -- cgit v1.2.3