diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-28 09:26:25 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-28 09:26:25 +0100 |
commit | 821be8a24364ed2906b5e4c44993cb21a0832f30 (patch) | |
tree | 8ffd8da647142b81dd1bfd534988f59a562bd2d4 /stubdom/Makefile | |
parent | ca1ba182563b41fe7a4dbffc5308cdd5318833d6 (diff) | |
download | xen-821be8a24364ed2906b5e4c44993cb21a0832f30.tar.gz xen-821be8a24364ed2906b5e4c44993cb21a0832f30.tar.bz2 xen-821be8a24364ed2906b5e4c44993cb21a0832f30.zip |
stubdom/newlib: Provide correct names for time.h timezone variables
Newlib unaccountably defines _daylight, _timezone and _tzname, rather
than daylight, timezone and tzname. The latter are specified in
SuSv3.
So do a global search and replace as part of our newlib patching :-(.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'stubdom/Makefile')
-rw-r--r-- | stubdom/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stubdom/Makefile b/stubdom/Makefile index 43e8e9217b..cd18b9972d 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -102,6 +102,8 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz patch -d $@ -p0 < newlib.patch patch -d $@ -p0 < newlib-chk.patch patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch + find $@ -type f | xargs perl -i.bak \ + -pe 's/\b_(tzname|daylight|timezone)\b/$$1/g' touch $@ NEWLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libc.a |