From 090555538d4347a52807ba9f08cf20ed13206afe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 24 Aug 2010 11:55:53 -0700 Subject: Rejigger header generation for default uname implementation. --- posix/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'posix/Makefile') diff --git a/posix/Makefile b/posix/Makefile index 643d7e5374..4f29963a20 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 -- cgit 1.4.1