summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/inet/Makefile.in15
-rw-r--r--libc/misc/ctype/Makefile.in10
-rw-r--r--libc/misc/ftw/Makefile.in5
-rw-r--r--libc/misc/intl/Makefile.in5
-rw-r--r--libc/misc/locale/Makefile.in15
-rw-r--r--libc/misc/search/Makefile.in20
-rw-r--r--libc/misc/sysvipc/Makefile.in15
-rw-r--r--libc/misc/time/Makefile.in10
-rw-r--r--libc/misc/wchar/Makefile.in5
-rw-r--r--libc/misc/wctype/Makefile.in10
-rw-r--r--libc/pwd_grp/Makefile.in5
-rw-r--r--libc/stdio/Makefile.in15
-rw-r--r--libc/stdlib/Makefile.in25
-rw-r--r--libc/stdlib/malloc-simple/Makefile.in5
-rw-r--r--libc/string/Makefile.in20
-rw-r--r--libc/string/i386/Makefile.arch5
-rw-r--r--libc/string/powerpc/Makefile.arch5
-rw-r--r--libc/termios/Makefile.in5
-rw-r--r--libc/unistd/Makefile.in5
19 files changed, 160 insertions, 40 deletions
diff --git a/libc/inet/Makefile.in b/libc/inet/Makefile.in
index 0ee670e75..cb844907b 100644
--- a/libc/inet/Makefile.in
+++ b/libc/inet/Makefile.in
@@ -50,13 +50,22 @@ INET_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(INET_MOBJ))))
INET_OBJS:=$(INET_OBJ) $(INET_MOBJ)
-$(INET_MOBJ1) $(INET_MOBJ1:.o=.os): $(INET_MSRC1)
+$(INET_MOBJ1): $(INET_MSRC1)
$(compile.m)
-$(INET_MOBJ2) $(INET_MOBJ2:.o=.os): $(INET_MSRC2)
+$(INET_MOBJ1:.o=.os): $(INET_MSRC1)
$(compile.m)
-$(INET_MOBJ3) $(INET_MOBJ3:.o=.os): $(INET_MSRC3)
+$(INET_MOBJ2): $(INET_MSRC2)
+ $(compile.m)
+
+$(INET_MOBJ2:.o=.os): $(INET_MSRC2)
+ $(compile.m)
+
+$(INET_MOBJ3): $(INET_MSRC3)
+ $(compile.m)
+
+$(INET_MOBJ3:.o=.os): $(INET_MSRC3)
$(compile.m)
libc-a-y+=$(INET_OBJS)
diff --git a/libc/misc/ctype/Makefile.in b/libc/misc/ctype/Makefile.in
index a496d19a8..8b67514be 100644
--- a/libc/misc/ctype/Makefile.in
+++ b/libc/misc/ctype/Makefile.in
@@ -33,10 +33,16 @@ MISC_CTYPE_MOBJx=$(patsubst %.o,$(MISC_CTYPE_OUT)/%.o,$(MOBJx))
# adapt this if MOBJx is done for multi
MISC_CTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_CTYPE_MOBJ))))
-$(MISC_CTYPE_MOBJ) $(MISC_CTYPE_MOBJ:.o=.os): $(MISC_CTYPE_MSRC)
+$(MISC_CTYPE_MOBJ): $(MISC_CTYPE_MSRC)
$(compile.m)
-$(MISC_CTYPE_MOBJx) $(MISC_CTYPE_MOBJx:.o=.os): $(MISC_CTYPE_MSRC)
+$(MISC_CTYPE_MOBJ:.o=.os): $(MISC_CTYPE_MSRC)
+ $(compile.m)
+
+$(MISC_CTYPE_MOBJx): $(MISC_CTYPE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(MISC_CTYPE_MOBJx:.o=.os): $(MISC_CTYPE_MSRC)
$(compile.m) -D__UCLIBC_DO_XLOCALE
libc-a-y+=$(MISC_CTYPE_MOBJ)
diff --git a/libc/misc/ftw/Makefile.in b/libc/misc/ftw/Makefile.in
index 07adba6ff..50be20aeb 100644
--- a/libc/misc/ftw/Makefile.in
+++ b/libc/misc/ftw/Makefile.in
@@ -21,7 +21,10 @@ MISC_FTW_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_FTW_MOBJ))))
MISC_FTW_OBJS:=$(MISC_FTW_MOBJ) $(MISC_FTW_OUT)/$(MISC_FTW_NO_MULTI)
-$(MISC_FTW_OBJS) $(MISC_FTW_OBJS:.o=.os): $(MISC_FTW_MSRC)
+$(MISC_FTW_OBJS): $(MISC_FTW_MSRC)
+ $(compile.m)
+
+$(MISC_FTW_OBJS:.o=.os): $(MISC_FTW_MSRC)
$(compile.m)
libc-a-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS)
diff --git a/libc/misc/intl/Makefile.in b/libc/misc/intl/Makefile.in
index 0ec7b5aa4..6daa22dd9 100644
--- a/libc/misc/intl/Makefile.in
+++ b/libc/misc/intl/Makefile.in
@@ -17,7 +17,10 @@ MISC_INTL_MSRC:=$(MISC_INTL_DIR)/$(MSRC)
MISC_INTL_MOBJ:=$(patsubst %.o,$(MISC_INTL_OUT)/%.o,$(MOBJ))
MISC_INTL_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_INTL_MOBJ))))
-$(MISC_INTL_MOBJ) $(MISC_INTL_MOBJ:.o=.os): $(MISC_INTL_MSRC)
+$(MISC_INTL_MOBJ): $(MISC_INTL_MSRC)
+ $(compile.m)
+
+$(MISC_INTL_MOBJ:.o=.os): $(MISC_INTL_MSRC)
$(compile.m)
libc-a-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_MOBJ)
diff --git a/libc/misc/locale/Makefile.in b/libc/misc/locale/Makefile.in
index bdf42204d..e2fa8158a 100644
--- a/libc/misc/locale/Makefile.in
+++ b/libc/misc/locale/Makefile.in
@@ -33,13 +33,22 @@ MISC_LOCALE_DATA=$(patsubst %.o,$(MISC_LOCALE_OUT)/%.o,$(DATA))
MISC_LOCALE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_LOCALE_MOBJ))))
-$(MISC_LOCALE_MOBJ) $(MISC_LOCALE_MOBJ:.o=.os): $(MISC_LOCALE_MSRC)
+$(MISC_LOCALE_MOBJ): $(MISC_LOCALE_MSRC)
$(compile.m)
-$(MISC_LOCALE_MOBJx) $(MISC_LOCALE_MOBJx:.o=.os): $(MISC_LOCALE_MSRC)
+$(MISC_LOCALE_MOBJ:.o=.os): $(MISC_LOCALE_MSRC)
+ $(compile.m)
+
+$(MISC_LOCALE_MOBJx): $(MISC_LOCALE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(MISC_LOCALE_MOBJx:.o=.os): $(MISC_LOCALE_MSRC)
$(compile.m) -D__UCLIBC_DO_XLOCALE
-$(MISC_LOCALE_DATA) $(MISC_LOCALE_DATA:.o=.os): $(top_builddir)extra/locale/$(notdir $(MISC_LOCALE_DATA:.o=.c))
+$(MISC_LOCALE_DATA): $(top_builddir)extra/locale/$(notdir $(MISC_LOCALE_DATA:.o=.c))
+ $(compile.c) -D__WCHAR_ENABLED -I$(dir $<)
+
+$(MISC_LOCALE_DATA:.o=.os): $(top_builddir)extra/locale/$(notdir $(MISC_LOCALE_DATA:.o=.c))
$(compile.c) -D__WCHAR_ENABLED -I$(dir $<)
libc-a-y+=$(MISC_LOCALE_MOBJ)
diff --git a/libc/misc/search/Makefile.in b/libc/misc/search/Makefile.in
index 8d6586e75..943ef34d0 100644
--- a/libc/misc/search/Makefile.in
+++ b/libc/misc/search/Makefile.in
@@ -41,16 +41,28 @@ MISC_SEARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SEARCH_MOBJ))))
MISC_SEARCH_OBJS:=$(MISC_SEARCH_OBJ) $(MISC_SEARCH_MOBJ)
-$(MISC_SEARCH_MOBJ1) $(MISC_SEARCH_MOBJ1:.o=.os): $(MISC_SEARCH_MSRC1)
+$(MISC_SEARCH_MOBJ1): $(MISC_SEARCH_MSRC1)
$(compile.m)
-$(MISC_SEARCH_MOBJ2) $(MISC_SEARCH_MOBJ2:.o=.os): $(MISC_SEARCH_MSRC2)
+$(MISC_SEARCH_MOBJ1:.o=.os): $(MISC_SEARCH_MSRC1)
$(compile.m)
-$(MISC_SEARCH_MOBJ3) $(MISC_SEARCH_MOBJ3:.o=.os): $(MISC_SEARCH_MSRC3)
+$(MISC_SEARCH_MOBJ2): $(MISC_SEARCH_MSRC2)
$(compile.m)
-$(MISC_SEARCH_MOBJ4) $(MISC_SEARCH_MOBJ4:.o=.os): $(MISC_SEARCH_MSRC4)
+$(MISC_SEARCH_MOBJ2:.o=.os): $(MISC_SEARCH_MSRC2)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ3): $(MISC_SEARCH_MSRC3)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ3:.o=.os): $(MISC_SEARCH_MSRC3)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ4): $(MISC_SEARCH_MSRC4)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ4:.o=.os): $(MISC_SEARCH_MSRC4)
$(compile.m)
libc-a-y+=$(MISC_SEARCH_OBJS)
diff --git a/libc/misc/sysvipc/Makefile.in b/libc/misc/sysvipc/Makefile.in
index 751f05b0f..9c91c4c53 100644
--- a/libc/misc/sysvipc/Makefile.in
+++ b/libc/misc/sysvipc/Makefile.in
@@ -39,13 +39,22 @@ MISC_SYSVIPC_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SYSVIPC_MOBJ2))
MISC_SYSVIPC_OBJS:=$(MISC_SYSVIPC_OBJ) $(MISC_SYSVIPC_MOBJ)
-$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ1:.o=.os): $(MISC_SYSVIPC_MSRC1)
+$(MISC_SYSVIPC_MOBJ1): $(MISC_SYSVIPC_MSRC1)
$(compile.m)
-$(MISC_SYSVIPC_MOBJ2) $(MISC_SYSVIPC_MOBJ2:.o=.os): $(MISC_SYSVIPC_MSRC2)
+$(MISC_SYSVIPC_MOBJ1:.o=.os): $(MISC_SYSVIPC_MSRC1)
$(compile.m)
-$(MISC_SYSVIPC_MOBJ3) $(MISC_SYSVIPC_MOBJ3:.o=.os): $(MISC_SYSVIPC_MSRC3)
+$(MISC_SYSVIPC_MOBJ2): $(MISC_SYSVIPC_MSRC2)
+ $(compile.m)
+
+$(MISC_SYSVIPC_MOBJ2:.o=.os): $(MISC_SYSVIPC_MSRC2)
+ $(compile.m)
+
+$(MISC_SYSVIPC_MOBJ3): $(MISC_SYSVIPC_MSRC3)
+ $(compile.m)
+
+$(MISC_SYSVIPC_MOBJ3:.o=.os): $(MISC_SYSVIPC_MSRC3)
$(compile.m)
libc-a-y+=$(MISC_SYSVIPC_OBJS)
diff --git a/libc/misc/time/Makefile.in b/libc/misc/time/Makefile.in
index 06da935be..91ca6e396 100644
--- a/libc/misc/time/Makefile.in
+++ b/libc/misc/time/Makefile.in
@@ -45,10 +45,16 @@ MISC_TIME_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(filter-out $(MISC_TIME_
MISC_TIME_OBJS:=$(MISC_TIME_OBJ) $(MISC_TIME_MOBJ)
-$(MISC_TIME_MOBJ) $(MISC_TIME_MOBJ:.o=.os): $(MISC_TIME_MSRC)
+$(MISC_TIME_MOBJ): $(MISC_TIME_MSRC)
$(compile.m)
-$(MISC_TIME_MOBJx) $(MISC_TIME_MOBJx:.o=.os): $(MISC_TIME_MSRC)
+$(MISC_TIME_MOBJ:.o=.os): $(MISC_TIME_MSRC)
+ $(compile.m)
+
+$(MISC_TIME_MOBJx): $(MISC_TIME_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(MISC_TIME_MOBJx:.o=.os): $(MISC_TIME_MSRC)
$(compile.m) -D__UCLIBC_DO_XLOCALE
libc-a-y+=$(MISC_TIME_OBJS)
diff --git a/libc/misc/wchar/Makefile.in b/libc/misc/wchar/Makefile.in
index da63e22de..9059d71d8 100644
--- a/libc/misc/wchar/Makefile.in
+++ b/libc/misc/wchar/Makefile.in
@@ -33,7 +33,10 @@ MISC_WCHAR_MSRC:=$(MISC_WCHAR_DIR)/$(MSRC)
MISC_WCHAR_MOBJ:=$(patsubst %.o,$(MISC_WCHAR_OUT)/%.o,$(MOBJ))
MISC_WCHAR_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCHAR_MOBJ))))
-$(MISC_WCHAR_MOBJ) $(MISC_WCHAR_MOBJ:.o=.os): $(MISC_WCHAR_MSRC)
+$(MISC_WCHAR_MOBJ): $(MISC_WCHAR_MSRC)
+ $(compile.m)
+
+$(MISC_WCHAR_MOBJ:.o=.os): $(MISC_WCHAR_MSRC)
$(compile.m)
libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ)
diff --git a/libc/misc/wctype/Makefile.in b/libc/misc/wctype/Makefile.in
index 31b6567f8..b7bdbd8f8 100644
--- a/libc/misc/wctype/Makefile.in
+++ b/libc/misc/wctype/Makefile.in
@@ -27,10 +27,16 @@ MISC_WCTYPE_MOBJx=$(patsubst %.o,$(MISC_WCTYPE_OUT)/%.o,$(MOBJx))
# adapt this if MOBJx is done for multi
MISC_WCTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCTYPE_MOBJ))))
-$(MISC_WCTYPE_MOBJ) $(MISC_WCTYPE_MOBJ:.o=.os): $(MISC_WCTYPE_MSRC)
+$(MISC_WCTYPE_MOBJ): $(MISC_WCTYPE_MSRC)
$(compile.m)
-$(MISC_WCTYPE_MOBJx) $(MISC_WCTYPE_MOBJx:.o=.os): $(MISC_WCTYPE_MSRC)
+$(MISC_WCTYPE_MOBJ:.o=.os): $(MISC_WCTYPE_MSRC)
+ $(compile.m)
+
+$(MISC_WCTYPE_MOBJx): $(MISC_WCTYPE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(MISC_WCTYPE_MOBJx:.o=.os): $(MISC_WCTYPE_MSRC)
$(compile.m) -D__UCLIBC_DO_XLOCALE
libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ)
diff --git a/libc/pwd_grp/Makefile.in b/libc/pwd_grp/Makefile.in
index d58484b2f..3475d2331 100644
--- a/libc/pwd_grp/Makefile.in
+++ b/libc/pwd_grp/Makefile.in
@@ -28,7 +28,10 @@ PWDGRP_MOBJ:=$(patsubst %.o,$(PWDGRP_OUT)/%.o,$(MOBJ))
PWDGRP_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(PWDGRP_MOBJ))))
-$(PWDGRP_MOBJ) $(PWDGRP_MOBJ:.o=.os): $(PWDGRP_MSRC)
+$(PWDGRP_MOBJ): $(PWDGRP_MSRC)
+ $(compile.m)
+
+$(PWDGRP_MOBJ:.o=.os): $(PWDGRP_MSRC)
$(compile.m)
libc-a-y+=$(PWDGRP_MOBJ)
diff --git a/libc/stdio/Makefile.in b/libc/stdio/Makefile.in
index a2b4aac87..ec4e7c1b2 100644
--- a/libc/stdio/Makefile.in
+++ b/libc/stdio/Makefile.in
@@ -109,7 +109,10 @@ STDIO_OBJS:=$(STDIO_OBJ) $(STDIO_MOBJ) $(STDIO_CUOBJ) $(STDIO_CLOBJ)
# these need special handling or rewrite to support multi-build
# CUOBJ
-%_unlocked.o %_unlocked.os: %.c
+%_unlocked.o: %.c
+ $(compile.c) -D__DO_UNLOCKED
+
+%_unlocked.os: %.c
$(compile.c) -D__DO_UNLOCKED
# need this, else the other %64 files will get false rules
@@ -122,10 +125,16 @@ $(STDIO_CLOBJ): %.o : %.c
$(STDIO_CLOBJ:.o=.os): %.os : %.c
$(compile.c) -D__DO_LARGEFILE
-$(STDIO_MOBJ1) $(STDIO_MOBJ1:.o=.os): $(STDIO_MSRC1)
+$(STDIO_MOBJ1): $(STDIO_MSRC1)
+ $(compile.m)
+
+$(STDIO_MOBJ1:.o=.os): $(STDIO_MSRC1)
+ $(compile.m)
+
+$(STDIO_MOBJ2): $(STDIO_MSRC2)
$(compile.m)
-$(STDIO_MOBJ2) $(STDIO_MOBJ2:.o=.os): $(STDIO_MSRC2)
+$(STDIO_MOBJ2:.o=.os): $(STDIO_MSRC2)
$(compile.m)
libc-a-y+=$(STDIO_OBJS)
diff --git a/libc/stdlib/Makefile.in b/libc/stdlib/Makefile.in
index 236d20cda..19cd07fc7 100644
--- a/libc/stdlib/Makefile.in
+++ b/libc/stdlib/Makefile.in
@@ -91,19 +91,34 @@ STDLIB_MOBJx:=$(STDLIB_MOBJ1x) $(STDLIB_MOBJ2x)
STDLIB_OBJS:=$(STDLIB_OBJ) $(STDLIB_MOBJ) $(STDLIB_MOBJx)
-$(STDLIB_MOBJ1) $(STDLIB_MOBJ1:.o=.os): $(STDLIB_MSRC1)
+$(STDLIB_MOBJ1): $(STDLIB_MSRC1)
$(compile.m)
-$(STDLIB_MOBJ2) $(STDLIB_MOBJ2:.o=.os): $(STDLIB_MSRC2)
+$(STDLIB_MOBJ1:.o=.os): $(STDLIB_MSRC1)
$(compile.m)
-$(STDLIB_MOBJ3) $(STDLIB_MOBJ3:.o=.os) $(STDLIB_OUT)/atexit.os: $(STDLIB_MSRC3)
+$(STDLIB_MOBJ2): $(STDLIB_MSRC2)
$(compile.m)
-$(STDLIB_MOBJ1x) $(STDLIB_MOBJ1x:.o=.os): $(STDLIB_MSRC1)
+$(STDLIB_MOBJ2:.o=.os): $(STDLIB_MSRC2)
+ $(compile.m)
+
+$(STDLIB_MOBJ3): $(STDLIB_MSRC3)
+ $(compile.m)
+
+$(STDLIB_MOBJ3:.o=.os) $(STDLIB_OUT)/atexit.os: $(STDLIB_MSRC3)
+ $(compile.m)
+
+$(STDLIB_MOBJ1x): $(STDLIB_MSRC1)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(STDLIB_MOBJ1x:.o=.os): $(STDLIB_MSRC1)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(STDLIB_MOBJ2x): $(STDLIB_MSRC2)
$(compile.m) -D__UCLIBC_DO_XLOCALE
-$(STDLIB_MOBJ2x) $(STDLIB_MOBJ2x:.o=.os): $(STDLIB_MSRC2)
+$(STDLIB_MOBJ2x:.o=.os): $(STDLIB_MSRC2)
$(compile.m) -D__UCLIBC_DO_XLOCALE
libc-a-y+=$(STDLIB_OBJS)
diff --git a/libc/stdlib/malloc-simple/Makefile.in b/libc/stdlib/malloc-simple/Makefile.in
index a9bc674a2..7add9deaa 100644
--- a/libc/stdlib/malloc-simple/Makefile.in
+++ b/libc/stdlib/malloc-simple/Makefile.in
@@ -21,7 +21,10 @@ libc-so-$(MALLOC_SIMPLE)+=$(STDLIB_MALLOC_SIMPLE_MOBJ:.o=.os)
CFLAGS-multi-$(MALLOC_SIMPLE)+=$(STDLIB_MALLOC_SIMPLE_DEF)
libc-multi-$(MALLOC_SIMPLE)+=$(STDLIB_MALLOC_SIMPLE_MSRC)
-$(STDLIB_MALLOC_SIMPLE_MOBJ) $(STDLIB_MALLOC_SIMPLE_MOBJ:.o=.os): $(STDLIB_MALLOC_SIMPLE_MSRC)
+$(STDLIB_MALLOC_SIMPLE_MOBJ): $(STDLIB_MALLOC_SIMPLE_MSRC)
+ $(compile.m)
+
+$(STDLIB_MALLOC_SIMPLE_MOBJ:.o=.os): $(STDLIB_MALLOC_SIMPLE_MSRC)
$(compile.m)
objclean-y+=stdlib_malloc_simple_objclean
diff --git a/libc/string/Makefile.in b/libc/string/Makefile.in
index 5f1f188c4..6b0a154ca 100644
--- a/libc/string/Makefile.in
+++ b/libc/string/Makefile.in
@@ -67,16 +67,28 @@ STRING_MOBJWx=$(patsubst %.o,$(STRING_OUT)/%.o,$(MOBJWx))
STRING_Wx=$(STRING_MOBJW) $(STRING_MOBJx) $(STRING_MOBJWx)
STRING_OBJS:=$(STRING_MOBJ) $(STRING_Wx)
-$(STRING_MOBJ) $(STRING_MOBJ:.o=.os): $(STRING_MSRC)
+$(STRING_MOBJ): $(STRING_MSRC)
$(compile.m)
-$(STRING_MOBJW) $(STRING_MOBJW:.o=.os): $(STRING_MSRC)
+$(STRING_MOBJ:.o=.os): $(STRING_MSRC)
+ $(compile.m)
+
+$(STRING_MOBJW): $(STRING_MSRC)
+ $(compile.m) -DWANT_WIDE
+
+$(STRING_MOBJW:.o=.os): $(STRING_MSRC)
$(compile.m) -DWANT_WIDE
-$(STRING_MOBJx) $(STRING_MOBJx:.o=.os): $(STRING_MSRC)
+$(STRING_MOBJx): $(STRING_MSRC)
$(compile.m) -D__UCLIBC_DO_XLOCALE
-$(STRING_MOBJWx) $(STRING_MOBJWx:.o=.os): $(STRING_MSRC)
+$(STRING_MOBJx:.o=.os): $(STRING_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(STRING_MOBJWx): $(STRING_MSRC)
+ $(compile.m) -DWANT_WIDE -D__UCLIBC_DO_XLOCALE
+
+$(STRING_MOBJWx:.o=.os): $(STRING_MSRC)
$(compile.m) -DWANT_WIDE -D__UCLIBC_DO_XLOCALE
libc-a-y+=$(STRING_OBJS)
diff --git a/libc/string/i386/Makefile.arch b/libc/string/i386/Makefile.arch
index 65f461cbb..36f4ec26f 100644
--- a/libc/string/i386/Makefile.arch
+++ b/libc/string/i386/Makefile.arch
@@ -20,7 +20,10 @@ STRING_ARCH_OBJS:=$(STRING_ARCH_MOBJ)
STRING_ARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(STRING_ARCH_OBJS))))
-$(STRING_ARCH_MOBJ) $(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
+$(STRING_ARCH_MOBJ): $(STRING_ARCH_MSRC)
+ $(compile.m)
+
+$(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
$(compile.m)
libc-a-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS)
diff --git a/libc/string/powerpc/Makefile.arch b/libc/string/powerpc/Makefile.arch
index 97ae14e7f..75fcfc67d 100644
--- a/libc/string/powerpc/Makefile.arch
+++ b/libc/string/powerpc/Makefile.arch
@@ -18,7 +18,10 @@ STRING_ARCH_OBJS:=$(STRING_ARCH_MOBJ)
STRING_ARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(STRING_ARCH_MOBJ))))
-$(STRING_ARCH_MOBJ) $(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
+$(STRING_ARCH_MOBJ): $(STRING_ARCH_MSRC)
+ $(compile.m)
+
+$(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
$(compile.m)
libc-a-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS)
diff --git a/libc/termios/Makefile.in b/libc/termios/Makefile.in
index a90d4fb90..415f32192 100644
--- a/libc/termios/Makefile.in
+++ b/libc/termios/Makefile.in
@@ -25,7 +25,10 @@ TERMIOS_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(TERMIOS_MOBJ))))
TERMIOS_OBJS:=$(TERMIOS_OBJ) $(TERMIOS_MOBJ)
-$(TERMIOS_MOBJ) $(TERMIOS_MOBJ:.o=.os): $(TERMIOS_MSRC)
+$(TERMIOS_MOBJ): $(TERMIOS_MSRC)
+ $(compile.m)
+
+$(TERMIOS_MOBJ:.o=.os): $(TERMIOS_MSRC)
$(compile.m)
libc-a-y+=$(TERMIOS_OBJS)
diff --git a/libc/unistd/Makefile.in b/libc/unistd/Makefile.in
index ebc3919e7..1bc052749 100644
--- a/libc/unistd/Makefile.in
+++ b/libc/unistd/Makefile.in
@@ -35,7 +35,10 @@ UNISTD_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(UNISTD_MOBJ))))
UNISTD_OBJS:=$(UNISTD_OBJ) $(UNISTD_MOBJ)
-$(UNISTD_MOBJ) $(UNISTD_MOBJ:.o=.os): $(UNISTD_MSRC)
+$(UNISTD_MOBJ): $(UNISTD_MSRC)
+ $(compile.m)
+
+$(UNISTD_MOBJ:.o=.os): $(UNISTD_MSRC)
$(compile.m)
libc-a-y+=$(UNISTD_OBJS)