diff options
Diffstat (limited to 'locale/Makefile')
-rw-r--r-- | locale/Makefile | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/locale/Makefile b/locale/Makefile index 27bd893c4a..ec47bde054 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -101,18 +101,11 @@ CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts CFLAGS-charmap-dir.c = -Wno-write-strings -CPPFLAGS-locale = -DNOT_IN_libc -CPPFLAGS-localedef = -DNOT_IN_libc -CPPFLAGS-ld-ctype = -DNOT_IN_libc -CPPFLAGS-ld-time = -DNOT_IN_libc -CPPFLAGS-ld-numeric = -DNOT_IN_libc -CPPFLAGS-ld-monetary = -DNOT_IN_libc -CPPFLAGS-ld-collate = -DNOT_IN_libc -CPPFLAGS-ld-identification = -DNOT_IN_libc -CPPFLAGS-charmap = -DNOT_IN_libc -CPPFLAGS-locarchive = -DNOT_IN_libc -CPPFLAGS-linereader = -DNOT_IN_libc -CPPFLAGS-charmap-dir = -DNOT_IN_libc +# This makes sure -DNOT_IN_libc is passed for all these modules. +cpp-srcs-left := $(addsuffix .c,$(localedef-modules) $(localedef-aux) \ + $(locale-modules) $(lib-modules)) +lib := locale_programs +include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left)) # Depend on libc.so so a DT_NEEDED is generated in the shared objects. # This ensures they will load libc.so for needed symbols if loaded by |