source:
patches/2.0/glibc-2.4-crosscompile_timezone_fix-1.patch@
056acae
Last change on this file since 056acae was 4adffc0, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.6 KB |
-
timezone/Makefile
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> Date: 2005-07-20 Initial Package Version: 2.4 Origin: Joe Ciccone Upstream Status: Unknown Description: Allows the timezone data to be installed when cross-compiling by building and using zic-host. diff -Naur glibc-2.4.orig/timezone/Makefile glibc-2.4/timezone/Makefile
old new 28 28 extra-objs := scheck.o ialloc.o 29 29 30 30 others := zdump zic 31 ifneq ($(cross-compiling),no) 32 others += zic-host 33 endif 31 34 tests := test-tz tst-timezone 32 35 33 36 tzbases := africa antarctica asia australasia europe northamerica \ … … 49 52 include ../Makeconfig # Get objpfx defined so we can use it below. 50 53 51 54 CPPFLAGS-zic = -DNOT_IN_libc 55 CPPFLAGS-zic-host = -DNOT_IN_libc 52 56 53 57 # z.* use this variable. 54 58 define nl … … 69 73 $(addprefix $(inst_zonedir)/, \ 70 74 $(posixrules-file))) 71 75 72 ifeq ($(cross-compiling),no)73 # Don't try to install the zoneinfo files since we can't run zic.74 76 install-others = $(addprefix $(inst_zonedir)/,$(zonenames) \ 75 77 $(zonenames:%=posix/%) \ 76 78 $(zonenames:%=right/%)) \ 77 79 $(installed-localtime-file) $(installed-posixrules-file) 78 endif79 80 80 81 ifeq ($(have-ksh),yes) 81 82 install-others += $(inst_zonedir)/iso3166.tab $(inst_zonedir)/zone.tab … … 85 86 86 87 include ../Rules 87 88 88 89 89 $(tzfiles:%=$(objpfx)z.%): $(objpfx)z.%: % Makefile 90 90 # Kludge alert: we use an implicit rule (in what we are generating here) 91 91 # because that is the only way to tell Make that the one command builds all … … 124 124 echo-zonenames: 125 125 @echo 'Known zones: $(zonenames)' 126 126 127 128 127 # We have to use `-d $(inst_zonedir)' to explictly tell zic where to 129 128 # place the output files although $(zonedir) is compiled in. But the 130 129 # user might have set $(install_root) on the command line of `make install'. 130 ifeq ($(cross-compiling),no) 131 131 zic-cmd = $(built-program-cmd) -d $(inst_zonedir) 132 else 133 zic-cmd = $(common-objpfx)/timezone/zic-host -d $(inst_zonedir) 134 endif 132 135 tzcompile = $(zic-cmd)$(target-zone-flavor) -L $(word 3,$^) \ 133 136 -y $(dir $(word 4,$^))$(notdir $(word 4,$^)) $< 134 137 … … 158 161 $(zic-cmd) -p $(posixrules) 159 162 endif 160 163 164 zic-host.c scheck-host.c ialloc-host.c: $($@:%-host=%) 165 ln -sf $(@:%-host.c=%.c) $@ 166 167 zic-host-CFLAGS = -O $(CFLAGS-zic.c) \ 168 $(firstword $(filter /%,scheck-host.c $(shell pwd)/scheck-host.c)) \ 169 $(firstword $(filter /%,ialloc-host.c $(shell pwd)/ialloc-host.c)) 170 $(objpfx)zic-host: zic-host.c scheck-host.c ialloc-host.c 171 $(native-compile) 161 172 162 173 $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o 163 174
Note:
See TracBrowser
for help on using the repository browser.