summaryrefslogtreecommitdiff
path: root/libc/posix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/posix/Makefile')
-rw-r--r--libc/posix/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/posix/Makefile b/libc/posix/Makefile
index 96a248a92..ee5d7efa9 100644
--- a/libc/posix/Makefile
+++ b/libc/posix/Makefile
@@ -170,6 +170,14 @@ endif
OPTION_EGLIBC_INET-CFLAGS-$(OPTION_EGLIBC_INET) = -DUSE_NSCD=1
+# If we will use the generic uname implementation, we must figure out what
+# it will say by examining the system, and write the results in config-name.h.
+uname.c: $(objpfx)config-name.h
+$(objpfx)config-name.h: $(..)scripts/config-uname.sh $(common-objpfx)config.make
+ $< '$(config-os)' '$(config-release)' \
+ '$(config-machine)-$(config-vendor)' > $@.new
+ mv -f $@.new $@
+
CFLAGS-regex.c = -Wno-strict-prototypes
CFLAGS-getaddrinfo.c = -DRESOLVER -fexceptions $(OPTION_EGLIBC_INET-CFLAGS-y)
CFLAGS-pread.c = -fexceptions -fasynchronous-unwind-tables