From 569d6fdcd577d8b6260f8bad5704aaafd405638f Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 18 Mar 2002 10:10:55 +0000 Subject: [PATCH] FreeBSD 4.x bootstrapping aid (no eaccess(2) syscall). Reviewed by: markm --- gnu/usr.bin/perl/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/usr.bin/perl/Makefile.inc b/gnu/usr.bin/perl/Makefile.inc index 86e705d79ae..d53c10916df 100644 --- a/gnu/usr.bin/perl/Makefile.inc +++ b/gnu/usr.bin/perl/Makefile.inc @@ -60,8 +60,14 @@ links: ${DEPEND_H} @ln -sf ${PERL5SRC}/writemain.SH writemain.sh @ln -sf ${PERL5SRC}/regcomp.c regcomp.c @ln -sf ${PERL5SRC}/regexec.c regexec.c +.if defined(BOOTSTRAPPING) + @sed '/^d_eaccess=/s;define;undef;' \ + ${PERL5LIBSRC}/config.SH-${OBJFORMAT}.${MACHINE_ARCH} \ + > config.sh +.else @ln -sf ${PERL5LIBSRC}/config.SH-${OBJFORMAT}.${MACHINE_ARCH} \ config.sh +.endif @touch ${.TARGET} scripts: links