From 99c9726a00498d5292868949dc0fccf901914e8c Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 4 Mar 2014 02:19:39 +0000 Subject: 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. --- lib/libc/regex/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/regex') diff --git a/lib/libc/regex/Makefile.inc b/lib/libc/regex/Makefile.inc index a2e23eb..4595361 100644 --- a/lib/libc/regex/Makefile.inc +++ b/lib/libc/regex/Makefile.inc @@ -2,13 +2,13 @@ # $FreeBSD$ # regex sources -.PATH: ${.CURDIR}/regex +.PATH: ${LIBC_SRCTOP}/regex CFLAGS+=-DPOSIX_MISTAKE SRCS+= regcomp.c regerror.c regexec.c regfree.c -SYM_MAPS+=${.CURDIR}/regex/Symbol.map +SYM_MAPS+=${LIBC_SRCTOP}/regex/Symbol.map MAN+= regex.3 MAN+= re_format.7 -- cgit v1.1