about summary refs log tree commit diff
path: root/posix/Makefile
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-09-06 15:43:51 +0200
committerAndreas Schwab <schwab@redhat.com>2010-09-06 15:43:51 +0200
commitaa76a21a8b94b9b297c56fcf4b8e635fcf73d459 (patch)
treeac37aa584ee9aad675c0bf0a08d8ba096e681faf /posix/Makefile
parente1b0f9853e54b14a21c49f05742d3affd2282872 (diff)
parent32cf40699346d37fabfa887bbd95e95004799ae1 (diff)
downloadglibc-aa76a21a8b94b9b297c56fcf4b8e635fcf73d459.tar.gz
glibc-aa76a21a8b94b9b297c56fcf4b8e635fcf73d459.tar.xz
glibc-aa76a21a8b94b9b297c56fcf4b8e635fcf73d459.zip
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'posix/Makefile')
-rw-r--r--posix/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/Makefile b/posix/Makefile
index bb2b054249..dda5991722 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -139,6 +139,14 @@ $(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
 endif
 endif
 
+# 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 -DUSE_NSCD
 CFLAGS-pread.c = -fexceptions -fasynchronous-unwind-tables