summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-01-25 19:11:34 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-01-25 19:11:34 +0000
commit84d9d76680d2b51bf3c781d3502fd70524a8d2c0 (patch)
tree463f66db880032d44c1a6676aed5044fb9439f46 /lib/libc
parentd6f167396a6376568afda5f2f97e1c5b733a4c96 (diff)
downloadFreeBSD-src-84d9d76680d2b51bf3c781d3502fd70524a8d2c0.zip
FreeBSD-src-84d9d76680d2b51bf3c781d3502fd70524a8d2c0.tar.gz
Replace .CURDIR with SRCTOP to respect LIBC_SRCTOP feature.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index d02c028..a48b3e5 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -169,15 +169,15 @@ SUBDIR+= tests
.if !defined(_SKIP_BUILD)
# We need libutil.h, get it directly to avoid
# recording a build dependency
-CFLAGS+= -I${.CURDIR:H}/libutil
+CFLAGS+= -I${SRCTOP}/lib/libutil
# Same issue with libm
-MSUN_ARCH_SUBDIR != ${MAKE} -B -C ${.CURDIR:H}/msun -V ARCH_SUBDIR
+MSUN_ARCH_SUBDIR != ${MAKE} -B -C ${SRCTOP}/lib/msun -V ARCH_SUBDIR
# unfortunately msun/src contains both private and public headers
-CFLAGS+= -I${.CURDIR:H}/msun/${MSUN_ARCH_SUBDIR}
+CFLAGS+= -I${SRCTOP}/lib/msun/${MSUN_ARCH_SUBDIR}
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+= -I${.CURDIR:H}/msun/x86
+CFLAGS+= -I${SRCTOP}/lib/msun/x86
.endif
-CFLAGS+= -I${.CURDIR:H}/msun/src
+CFLAGS+= -I${SRCTOP}/lib/msun/src
# and we do not want to record a dependency on msun
.if ${.MAKE.LEVEL} > 0
GENDIRDEPS_FILTER+= N${RELDIR:H}/msun
OpenPOWER on IntegriCloud