about summary refs log tree commit diff
path: root/stdlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/Makefile')
-rw-r--r--stdlib/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index f875087065..61c35ebf78 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -74,6 +74,13 @@ CFLAGS-bsearch.c = $(exceptions)
 CFLAGS-msort.c = $(exceptions)
 CFLAGS-qsort.c = $(exceptions)
 
+include ../Makeconfig
+
+ifneq (,$(filter %REENTRANT, $(defines)))
+CFLAGS-strfmon.c = -D_IO_MTSAFE_IO
+CFLAGS-strfmon_l.c = -D_IO_MTSAFE_IO
+endif
+
 include ../Rules