From 7552a592f40aa200ea48118334fcec5946c5b57d Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 11 Apr 2003 17:58:17 +0000 Subject: [PATCH] libc_gen/basename.c depends on include/libgen.h. --- Makefile.inc1 | 1 + tools/build/Makefile | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 4edb3e7e8df..6b6a1704154 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -625,6 +625,7 @@ legacy: @${ECHODIR} "===> ${_tool}"; \ cd ${.CURDIR}/${_tool}; \ ${MAKE} DIRPRFX=${_tool}/ obj; \ + ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/legacy includes; \ ${MAKE} DIRPRFX=${_tool}/ depend; \ ${MAKE} DIRPRFX=${_tool}/ all; \ ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/legacy install diff --git a/tools/build/Makefile b/tools/build/Makefile index 2dc1a27eaf8..4bf29342970 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -31,9 +31,9 @@ INCS+= stdbool.h INCS+= langinfo.h .endif -# gnu/usr.bin/binutils/libiberty needs basename(3). -.if ( ${BOOTSTRAPPING} < 440000 || \ - ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500022 )) +# Some tools need basename(3). +.if !exists(/usr/include/libgen.h) +INCS+= libgen.h .PATH: ${.CURDIR}/../../lib/libc/gen SRCS+= basename.c .endif