Loading...
regex/Makefile.inc Libc-391 Libc-498
--- Libc/Libc-391/regex/Makefile.inc
+++ Libc/Libc-498/regex/Makefile.inc
@@ -10,7 +10,11 @@
 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 +22,9 @@
 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