summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/Makefile.inc
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-03-04 02:19:39 +0000
committermarcel <marcel@FreeBSD.org>2014-03-04 02:19:39 +0000
commit99c9726a00498d5292868949dc0fccf901914e8c (patch)
treeb427452563e69236dc90188829d2ff7e5d0b08d3 /lib/libc/locale/Makefile.inc
parentccdeb47ad3a689733148c261070973c096386a40 (diff)
downloadFreeBSD-src-99c9726a00498d5292868949dc0fccf901914e8c.zip
FreeBSD-src-99c9726a00498d5292868949dc0fccf901914e8c.tar.gz
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}
if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'lib/libc/locale/Makefile.inc')
-rw-r--r--lib/libc/locale/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc
index c2f2f4e..d28355b 100644
--- a/lib/libc/locale/Makefile.inc
+++ b/lib/libc/locale/Makefile.inc
@@ -2,7 +2,7 @@
# $FreeBSD$
# locale sources
-.PATH: ${.CURDIR}/${LIBC_ARCH}/locale ${.CURDIR}/locale
+.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/locale ${LIBC_SRCTOP}/locale
SRCS+= ascii.c big5.c btowc.c collate.c collcmp.c euc.c fix_grouping.c \
gb18030.c gb2312.c gbk.c ctype.c isctype.c iswctype.c \
@@ -29,7 +29,7 @@ SRCS+= c16rtomb_iconv.c c32rtomb_iconv.c mbrtoc16_iconv.c mbrtoc32_iconv.c
SRCS+= c16rtomb.c c32rtomb.c mbrtoc16.c mbrtoc32.c
.endif
-SYM_MAPS+=${.CURDIR}/locale/Symbol.map
+SYM_MAPS+=${LIBC_SRCTOP}/locale/Symbol.map
MAN+= btowc.3 \
ctype_l.3 \
OpenPOWER on IntegriCloud