Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after:    3 weeks
Sponsored by: Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-01-20 04:04:25 +00:00
parent 5695441bc7
commit f623ad832c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312466

View File

@ -6,7 +6,7 @@
# bsd.lib.mk doesn't have an easy way to express that.
MK_PROFILE?=no
.include <src.opts.mk>
NO_PIC=
NO_PIC=
# -fpic on some platforms, -fPIC on others.
CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
@ -18,9 +18,9 @@ LIBC_NONSHARED_SRCS=
SRCS= __stub.c
.if ${MK_ICONV} == "yes"
.PATH: ${.CURDIR}/../libc/iconv
.PATH: ${SRCTOP}/lib/libc/iconv
.include "Makefile.iconv"
CFLAGS+=-I${.CURDIR}/../libc/iconv
CFLAGS+=-I${SRCTOP}/lib/libc/iconv
.endif
SRCS+= ${LIBC_NONSHARED_SRCS}