X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..7b00c0c43f52e9d27168e67a26aac19065cdb40c:/regex/Makefile.inc diff --git a/regex/Makefile.inc b/regex/Makefile.inc index f47cee8..2c5523a 100644 --- a/regex/Makefile.inc +++ b/regex/Makefile.inc @@ -3,6 +3,7 @@ # regex sources .PATH: ${.CURDIR}/regex +CWD := ${.CURDIR}/regex .include "Makefile.fbsd_begin" FBSDMISRCS= regcomp.c regerror.c regexec.c regfree.c @@ -10,7 +11,11 @@ CFLAGS-regcomp-fbsd.c+= -DPOSIX_MISTAKE FBSDHDRS= cclass.h cname.h engine.c regex2.h utils.h .include "Makefile.fbsd_end" -UNIX03SRCS += regcomp.c +LEGACYSRCS += regcomp.c + +# set the LIBC_ALIAS_* macros so we can decorate the symbol independent +# of other macro settings +CFLAGS-regcomp-fbsd.c += -DLIBC_ALIAS_REGCOMP .if ${LIB} == "c" .include "Makefile.fbsd_begin" @@ -18,6 +23,9 @@ FBSDMAN3= regex.3 FBSDMAN7= re_format.7 .include "Makefile.fbsd_end" -MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3 -MLINKS+=regexec.3 regfree.3 +MLINKS+= regex.3 regcomp.3 \ + regex.3 regexec.3 \ + regex.3 regerror.3 + +MLINKS+= regexec.3 regfree.3 .endif