summaryrefslogtreecommitdiff
path: root/libc/stdlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/Makefile')
-rw-r--r--libc/stdlib/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/stdlib/Makefile b/libc/stdlib/Makefile
index 3c0a42500..e93ffcbc6 100644
--- a/libc/stdlib/Makefile
+++ b/libc/stdlib/Makefile
@@ -55,7 +55,10 @@ routines-y := \
strtoimax strtoumax wcstoimax wcstoumax \
getcontext setcontext makecontext swapcontext
routines-$(OPTION_EGLIBC_LOCALE_CODE) += \
- rpmatch strfmon strfmon_l
+ strfmon strfmon_l
+ifeq (yy,$(OPTION_EGLIBC_LOCALE_CODE)$(OPTION_POSIX_REGEXP))
+routines-y += rpmatch
+endif
aux = grouping groupingwc
# These routines will be omitted from the libc shared object.