source: clfs-sysroot/patches/glibc-2.6-cross_hacks-1.patch @ 00520f6

Last change on this file since 00520f6 was 00520f6, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Update patches.

  • Property mode set to 100644
File size: 16.4 KB
RevLine 
[32edd3a]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
[ffd1587]2Date: 2006-11-26
[32edd3a]3Initial Package Version: 2.5
[00520f6]4        Rediffed against 2.6 by Joe Ciccone
[32edd3a]5Origin: Joe Ciccone
[ffd1587]6Upstream Status: Unknown
[32edd3a]7Description: Adds native compile support to the build system then uses that
8             support to build zic-native, for installing timezone info,
9             rpcgen-native, for building librpcsvc.a, and localedef-native,
10             for creating the locale-archive.
11
[00520f6]12diff -Naur glibc-2.6.orig/iconv/Makefile glibc-2.6/iconv/Makefile
13--- glibc-2.6.orig/iconv/Makefile       2007-07-02 15:20:36.000000000 -0400
14+++ glibc-2.6/iconv/Makefile    2007-07-02 15:28:24.000000000 -0400
[32edd3a]15@@ -56,6 +56,9 @@
16                  iconvconfig.h
17 
18 others         = iconv_prog iconvconfig
19+ifneq ($(cross-compiling),no)
20+others-native  = iconvconfig-native
21+endif
22 install-others = $(inst_bindir)/iconv
23 install-sbin   = iconvconfig
24 
25@@ -78,6 +81,7 @@
26 
27 $(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o)
28 $(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o)
29+$(objpfx)iconvconfig-native: $(iconvconfig-modules:%=$(objpfx)%-native.o)
30 
31 ifneq ($(cross-compiling),yes)
32 xtests: test-iconvconfig
[00520f6]33diff -Naur glibc-2.6.orig/iconvdata/Makefile glibc-2.6/iconvdata/Makefile
34--- glibc-2.6.orig/iconvdata/Makefile   2007-07-02 15:20:35.000000000 -0400
35+++ glibc-2.6/iconvdata/Makefile        2007-07-02 15:28:24.000000000 -0400
36@@ -312,23 +312,25 @@
[32edd3a]37 
38 headers: $(addprefix $(objpfx), $(generated-modules:=.h))
39 
40+ifeq ($(cross-compiling),no)
41+iconvconfig-cmd = LC_ALL=C LANGUAGE=C \
42+  $(common-objpfx)elf/ld.so --library-path $(rpath-link) \
43+  $(common-objpfx)iconv/iconvconfig
44+else
45+iconvconfig-cmd = LC_ALL=C LANGUAGE=C \
46+  $(common-objpfx)iconv/iconvconfig-native
47+endif
48+
49 $(addprefix $(inst_gconvdir)/, $(modules.so)): \
50     $(inst_gconvdir)/%: $(objpfx)% $(+force)
51        $(do-install-program)
52 $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
53        $(do-install)
54-ifeq (no,$(cross-compiling))
55 # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
56 # if this libc has more gconv modules than the previously installed one.
57        if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \
58-          LC_ALL=C LANGUAGE=C \
59-          $(common-objpfx)elf/ld.so --library-path $(rpath-link) \
60-          $(common-objpfx)iconv/iconvconfig \
61-            $(addprefix --prefix=,$(install_root)); \
62+          $(iconvconfig-cmd) $(addprefix --prefix=,$(install_root)); \
63        fi
64-else
65-       @echo '*@*@*@ You should recreate $(inst_gconvdir)/gconv-modules.cache'
66-endif
67 
68 endif # build-shared = yes
69 
[00520f6]70diff -Naur glibc-2.6.orig/include-native/bits/libc-tsd.h glibc-2.6/include-native/bits/libc-tsd.h
71--- glibc-2.6.orig/include-native/bits/libc-tsd.h       1969-12-31 19:00:00.000000000 -0500
72+++ glibc-2.6/include-native/bits/libc-tsd.h    2007-07-02 15:28:24.000000000 -0400
[32edd3a]73@@ -0,0 +1,3 @@
74+#ifndef __libc_tsd_define
75+#define __libc_tsd_define(A,B)
76+#endif
[00520f6]77diff -Naur glibc-2.6.orig/include-native/config.h glibc-2.6/include-native/config.h
78--- glibc-2.6.orig/include-native/config.h      1969-12-31 19:00:00.000000000 -0500
79+++ glibc-2.6/include-native/config.h   2007-07-02 15:28:24.000000000 -0400
[32edd3a]80@@ -0,0 +1 @@
81+/* Empty */
[00520f6]82diff -Naur glibc-2.6.orig/include-native/gnu/stubs.h glibc-2.6/include-native/gnu/stubs.h
83--- glibc-2.6.orig/include-native/gnu/stubs.h   1969-12-31 19:00:00.000000000 -0500
84+++ glibc-2.6/include-native/gnu/stubs.h        2007-07-02 15:28:24.000000000 -0400
[32edd3a]85@@ -0,0 +1 @@
86+/* Empty */
[00520f6]87diff -Naur glibc-2.6.orig/include-native/intl/loadinfo.h glibc-2.6/include-native/intl/loadinfo.h
88--- glibc-2.6.orig/include-native/intl/loadinfo.h       1969-12-31 19:00:00.000000000 -0500
89+++ glibc-2.6/include-native/intl/loadinfo.h    2007-07-02 15:28:24.000000000 -0400
[32edd3a]90@@ -0,0 +1,4 @@
91+#ifndef LOADINFO_H
92+#define LOADINFO_H
93+struct loaded_l10nfile;
94+#endif
[00520f6]95diff -Naur glibc-2.6.orig/include-native/libintl.h glibc-2.6/include-native/libintl.h
96--- glibc-2.6.orig/include-native/libintl.h     1969-12-31 19:00:00.000000000 -0500
97+++ glibc-2.6/include-native/libintl.h  2007-07-02 15:28:24.000000000 -0400
[32edd3a]98@@ -0,0 +1,13 @@
99+#include_next <libintl.h>
100+
101+#ifndef _
102+#define _(X) (X)
103+#endif
104+
105+#ifndef N_
106+#define N_(X) (X)
107+#endif
108+
109+#ifndef _libc_intl_domainname
110+#define _libc_intl_domainname "libc"
111+#endif
[00520f6]112diff -Naur glibc-2.6.orig/include-native/symbol-hacks.h glibc-2.6/include-native/symbol-hacks.h
113--- glibc-2.6.orig/include-native/symbol-hacks.h        1969-12-31 19:00:00.000000000 -0500
114+++ glibc-2.6/include-native/symbol-hacks.h     2007-07-02 15:28:24.000000000 -0400
[32edd3a]115@@ -0,0 +1 @@
116+/* Empty */
[00520f6]117diff -Naur glibc-2.6.orig/include-native/tls.h glibc-2.6/include-native/tls.h
118--- glibc-2.6.orig/include-native/tls.h 1969-12-31 19:00:00.000000000 -0500
119+++ glibc-2.6/include-native/tls.h      2007-07-02 15:28:24.000000000 -0400
[32edd3a]120@@ -0,0 +1,11 @@
121+#ifndef _include_tls_h
122+#define _include_tls_h 1
123+
124+#if USE_TLS && HAVE___THREAD \
125+    && (!defined NOT_IN_libc || defined IS_IN_libpthread)
126+# define USE___THREAD 1
127+#else
128+# define USE___THREAD 0
129+#endif
130+
131+#endif
[00520f6]132diff -Naur glibc-2.6.orig/locale/Makefile glibc-2.6/locale/Makefile
133--- glibc-2.6.orig/locale/Makefile      2007-07-02 15:20:37.000000000 -0400
134+++ glibc-2.6/locale/Makefile   2007-07-02 15:28:24.000000000 -0400
[32edd3a]135@@ -44,6 +44,9 @@
136 aux            = $(categories:%=lc-%) $(categories:%=C-%) SYS_libc C_name \
137                  xlocale localename global-locale coll-lookup
138 others         = localedef locale
139+ifneq ($(cross-compiling),no)
140+others-native  = localedef-native
141+endif
142 #others-static = localedef locale
143 install-bin    = localedef locale
144 extra-objs     = $(localedef-modules:=.o) $(localedef-aux:=.o) \
145@@ -81,6 +84,12 @@
146 $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
147 $(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o)
148 
149+ifneq ($(cross-compiling),no)
150+$(objpfx)localedef-native: $(localedef-modules:%=$(objpfx)%-native.o)
151+$(objpfx)localedef-native: $(localedef-aux:%=$(objpfx)%-native.o)
152+$(objpfx)localedef-native: $(lib-modules:%=$(objpfx)%-native.o)
153+endif
154+
155 C-translit.h: C-translit.h.in gen-translit.pl
156        $(PERL) gen-translit.pl < $< > $@.tmp
157        mv -f $@.tmp $@
[00520f6]158diff -Naur glibc-2.6.orig/localedata/Makefile glibc-2.6/localedata/Makefile
159--- glibc-2.6.orig/localedata/Makefile  2007-07-02 15:20:34.000000000 -0400
160+++ glibc-2.6/localedata/Makefile       2007-07-02 15:28:24.000000000 -0400
[32edd3a]161@@ -206,8 +206,13 @@
162 INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
163 
164 # Sometimes the whole collection of locale files should be installed.
165+ifeq ($(cross-compiling),no)
166 LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
167 $(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
168+else
169+LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
170+$(common-objpfx)locale/localedef-native
171+endif
172 install-locales: $(INSTALL-SUPPORTED-LOCALES)
173 
174 install-locales-dir:
[00520f6]175diff -Naur glibc-2.6.orig/Makeconfig glibc-2.6/Makeconfig
176--- glibc-2.6.orig/Makeconfig   2007-07-02 15:20:36.000000000 -0400
177+++ glibc-2.6/Makeconfig        2007-07-02 15:32:37.000000000 -0400
178@@ -445,6 +445,13 @@
[ffd1587]179                           $(common-objpfx)libc% $(+postinit),$^) \
180              $(link-extra-libs-static) $(link-libc-static) $(+postctor) $(+postinit)
181 endif
182+# Command for linking programs against the host system.
183+ifndef +link-native
184++link-native = $(BUILD_CC) -static -g -o $@ $^ \
185+              $(LDFLAGS) $(LDFLAGS-$(@F)) \
186+              $(combreloc-LDFLAGS) $(relro-LDFLAGS) $(hashstyle-LDFLAGS) \
187+              $(link-extra-libs)
188+endif
189 # Command for statically linking bounded-pointer programs with the C library.
190 ifndef +link-bounded
191 +link-bounded = $(CC) -nostdlib -nostartfiles -static -fbounded-pointers -o $@ \
[00520f6]192@@ -658,6 +665,8 @@
[ffd1587]193            $(+sysdep-includes) $(includes) \
194            $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes)
195 
196++includes-native = -I$(..)include-native -I$(objpfx) -I.
197+
198 # Since libio has several internal header files, we use a -I instead
199 # of many little headers in the include directory.
200 libio-include = -I$(..)libio
[00520f6]201@@ -672,10 +681,15 @@
[ffd1587]202           $(foreach lib,$(libof-$(basename $(@F))) \
203                         $(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \
204           $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F)))
205+CPPFLAGS-native = -D_GNU_SOURCE $($(subdir)-CPPFLAGS) $(+includes-native) $(defines) \
[00520f6]206+                 $(CPPFLAGS-$(suffix $@)) -include $(..)include/libc-symbols.h \
207+                 $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F)))
208 override CFLAGS        = -std=gnu99 $(gnu89-inline-CFLAGS) \
[ffd1587]209                  $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
210                  $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \
211                  $(CFLAGS-$(@F))
212+override CFLAGS-native = -std=gnu99 $(default_cflags) $(+gccwarn-c) \
[00520f6]213+                        $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
[ffd1587]214 override CXXFLAGS = $(c++-sysincludes) \
215                    $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
216                    $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
[00520f6]217diff -Naur glibc-2.6.orig/Makerules glibc-2.6/Makerules
218--- glibc-2.6.orig/Makerules    2007-07-02 15:20:36.000000000 -0400
219+++ glibc-2.6/Makerules 2007-07-02 15:28:24.000000000 -0400
[ffd1587]220@@ -292,6 +292,9 @@
221 object-suffixes-left := $(all-object-suffixes)
222 include $(o-iterator)
223 
224+$(objpfx)%-native.o: %.c $(before-compile)
225+       $(native-compile-command.c)
226+
227 # Omit the objpfx rules when building in the source tree, because
228 # objpfx is empty and so these rules just override the ones above.
229 ifdef objpfx
230@@ -368,6 +371,8 @@
231 compile-command.s = $(COMPILE.s) $< $(OUTPUT_OPTION) $(compile-mkdep-flags)
232 compile-command.c = $(compile.c) $(OUTPUT_OPTION) $(compile-mkdep-flags)
233 compile-command.cc = $(compile.cc) $(OUTPUT_OPTION) $(compile-mkdep-flags)
234+# Native commands
235+native-compile-command.c = $(native-compile.c) $(OUTPUT_OPTION) $(compile-mkdep-flags)
236 
237 # GCC can grok options after the file name, and it looks nicer that way.
238 compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)
239@@ -377,6 +382,8 @@
240 COMPILE.S = $(CC) -c $(CPPFLAGS) $(S-CPPFLAGS) \
241                  $(ASFLAGS) $(ASFLAGS-$(suffix $@))
242 COMPILE.s = $(filter-out -pipe,$(CC)) -c $(ASFLAGS)
243+# Native commands
244+native-compile.c = $(BUILD_CC) -g $< -c $(CFLAGS-native) $(CPPFLAGS-native)
245 
246 # We need this for the output to go in the right place.  It will default to
247 # empty if make was configured to work with a cc that can't grok -c and -o
248@@ -1168,7 +1175,7 @@
249 $(make-target-directory)
250 $(patsubst %/,cd % &&,$(objpfx)) \
251 $(BUILD_CC) $($(basename $(<F))-CFLAGS) $(ALL_BUILD_CFLAGS) \
252-           $(firstword $(filter /%,$< $(shell pwd)/$<)) -o $(@F)
253+           $(addprefix $(shell pwd)/, $^) -o $(@F)
254 endef
255 
256 # Command to compile $< in $(common-objdir) using the native libraries.
[00520f6]257diff -Naur glibc-2.6.orig/malloc/Makefile glibc-2.6/malloc/Makefile
258--- glibc-2.6.orig/malloc/Makefile      2007-07-02 15:20:36.000000000 -0400
259+++ glibc-2.6/malloc/Makefile   2007-07-02 15:28:24.000000000 -0400
[32edd3a]260@@ -73,10 +73,6 @@
261 endif
262 endif
263 
264-# Unless we get a test for the availability of libgd which also works
265-# for cross-compiling we disable the memusagestat generation in this
266-# situation.
267-ifneq ($(cross-compiling),yes)
268 # If the gd library is available we build the `memusagestat' program.
269 ifneq ($(LIBGD),no)
270 others: $(objpfx)memusage
271@@ -91,7 +87,6 @@
272 # is to presume that the standard system headers will be ok for this file.
273 $(objpfx)memusagestat.o: sysincludes = # nothing
274 endif
275-endif
276 
277 # Another goal which can be used to override the configure decision.
278 .PHONY: do-memusagestat
[00520f6]279diff -Naur glibc-2.6.orig/Rules glibc-2.6/Rules
280--- glibc-2.6.orig/Rules        2007-07-02 15:20:35.000000000 -0400
281+++ glibc-2.6/Rules     2007-07-02 15:28:24.000000000 -0400
[ffd1587]282@@ -87,7 +87,7 @@
283 
284 .PHONY: others tests
285 ifeq ($(build-programs),yes)
286-others: $(addprefix $(objpfx),$(others) $(sysdep-others) $(extra-objs))
287+others: $(addprefix $(objpfx),$(others) $(others-native) $(sysdep-others) $(extra-objs))
288 else
289 others: $(addprefix $(objpfx),$(extra-objs))
290 endif
291@@ -106,9 +106,11 @@
292 ifeq ($(build-programs),yes)
293 binaries-all = $(others) $(sysdep-others) $(tests) $(xtests) $(test-srcs)
294 binaries-static = $(others-static) $(tests-static) $(xtests-static)
295+binaries-native = $(others-native)
296 else
297 binaries-all = $(tests) $(xtests) $(test-srcs)
298 binaries-static =
299+binaries-native =
300 endif
301 
302 binaries-shared = $(filter-out $(binaries-static), $(binaries-all))
303@@ -127,6 +129,11 @@
304        $(+link-static)
305 endif
306 
307+ifneq "$(strip $(binaries-native))" ""
308+$(addprefix $(objpfx),$(binaries-native)): %: %.o
309+       $(+link-native)
310+endif
311+
312 ifeq ($(build-bounded),yes)
313 binaries-bounded = $(addsuffix -bp,$(tests) $(xtests) $(test-srcs))
314 $(addprefix $(objpfx),$(binaries-bounded)): %-bp: %.ob \
[00520f6]315diff -Naur glibc-2.6.orig/sunrpc/Makefile glibc-2.6/sunrpc/Makefile
316--- glibc-2.6.orig/sunrpc/Makefile      2007-07-02 15:20:36.000000000 -0400
317+++ glibc-2.6/sunrpc/Makefile   2007-07-02 15:28:24.000000000 -0400
[32edd3a]318@@ -70,6 +70,9 @@
319            clnt_unix svc_unix create_xid xdr_intXX_t
320 
321 others := rpcinfo
322+ifneq ($(cross-compiling),no)
323+others-native := rpcgen-native
324+endif
325 install-bin := rpcgen
326 install-sbin := rpcinfo
327 rpcgen-objs = rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o \
328@@ -98,15 +101,12 @@
329             $(resolvobjdir)/libresolv.a
330 endif
331 
332-ifeq (no,$(cross-compiling))
333-# We can only build this library if we can run the rpcgen we build.
334 headers += $(rpcsvc:%.x=rpcsvc/%.h)
335 extra-libs := librpcsvc
336 extra-libs-others := librpcsvc # Make it in `others' pass, not `lib' pass.
337 librpcsvc-routines = $(rpcsvc:%.x=x%)
338 librpcsvc-inhibit-o = .os # Build no shared rpcsvc library.
339 omit-deps = $(librpcsvc-routines)
340-endif
341 
342 CFLAGS-xbootparam_prot.c = -Wno-unused $(PIC-ccflag)
343 CFLAGS-xnlm_prot.c = -Wno-unused $(PIC-ccflag)
344@@ -136,13 +136,26 @@
345   $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
346        $(+link)
347 
348+ifneq ($(cross-compiling),no)
349+rpcgen.c:
350+       touch rpcgen.c
351+
352+$(objpfx)rpcgen-native: $(addprefix $(objpfx),$(rpcgen-objs:%.o=%-native.o))
353+endif
354+
355 # This makes sure -DNOT_IN_libc is passed for all these modules.
356 cpp-srcs-left := $(rpcgen-objs:.o=.c)
357 lib := nonlib
358 include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
359 
360 # Tell rpcgen where to find the C preprocessor.
361+ifeq ($(cross-compiling),no)
362 rpcgen-cmd = CPP='$(CC) -E -x c-header' $(built-program-cmd) -Y ../scripts
363+rpcgen = $(objpfx)rpcgen
364+else
365+rpcgen-cmd = CPP='$(CC) -E -x c-header' $(objpfx)rpcgen-native -Y ../scripts
366+rpcgen = $(objpfx)rpcgen-native
367+endif
368 
369 # Install the rpc data base file.
370 $(inst_sysconfdir)/rpc: etc.rpc $(+force)
371@@ -153,7 +166,7 @@
372 # relinked.
373 $(rpcsvc:%.x=$(objpfx)rpcsvc/%.h): $(objpfx)rpcsvc/%.h: $(objpfx)rpcsvc/%.stmp
374        @:
375-$(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(objpfx)rpcgen
376+$(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(rpcgen)
377        $(make-target-directory)
378        -@rm -f ${@:stmp=T} $@
379        $(rpcgen-cmd) -h $< -o ${@:stmp=T}
380@@ -163,7 +176,7 @@
381 # Generate the rpcsvc XDR functions with rpcgen.
382 $(rpcsvc:%.x=$(objpfx)x%.c): $(objpfx)x%.c: $(objpfx)x%.stmp
383        @:
384-$(objpfx)x%.stmp: rpcsvc/%.x $(objpfx)rpcgen
385+$(objpfx)x%.stmp: rpcsvc/%.x $(rpcgen)
386        -@rm -f ${@:stmp=T} $@
387        $(rpcgen-cmd) -c $< -o ${@:stmp=T}
388        $(move-if-change) $(@:stmp=T) $(@:stmp=c)
[00520f6]389diff -Naur glibc-2.6.orig/timezone/Makefile glibc-2.6/timezone/Makefile
390--- glibc-2.6.orig/timezone/Makefile    2007-07-02 15:20:36.000000000 -0400
391+++ glibc-2.6/timezone/Makefile 2007-07-02 15:28:24.000000000 -0400
[32edd3a]392@@ -28,6 +28,9 @@
393 extra-objs := scheck.o ialloc.o
394 
395 others := zdump zic
396+ifneq ($(cross-compiling),no)
397+others-native := zic-native
398+endif
399 tests  := test-tz tst-timezone
400 
401 tzbases := africa antarctica asia australasia europe northamerica \
402@@ -69,13 +72,10 @@
403                                         $(addprefix $(inst_zonedir)/, \
404                                                     $(posixrules-file)))
405 
406-ifeq ($(cross-compiling),no)
407-# Don't try to install the zoneinfo files since we can't run zic.
408 install-others = $(addprefix $(inst_zonedir)/,$(zonenames) \
409                                              $(zonenames:%=posix/%) \
410                                              $(zonenames:%=right/%)) \
411                 $(installed-localtime-file) $(installed-posixrules-file)
412-endif
413 
414 ifeq ($(have-ksh),yes)
415 install-others += $(inst_zonedir)/iso3166.tab $(inst_zonedir)/zone.tab
416@@ -128,7 +128,11 @@
417 # We have to use `-d $(inst_zonedir)' to explictly tell zic where to
418 # place the output files although $(zonedir) is compiled in.  But the
419 # user might have set $(install_root) on the command line of `make install'.
420+ifeq ($(cross-compiling),no)
421 zic-cmd = $(built-program-cmd) -d $(inst_zonedir)
422+else
423+zic-cmd = $(common-objpfx)/timezone/zic-native -d $(inst_zonedir)
424+endif
425 tzcompile = $(zic-cmd)$(target-zone-flavor) -L $(word 3,$^) \
426            -y $(dir $(word 4,$^))$(notdir $(word 4,$^)) $<
427 
428@@ -158,8 +162,10 @@
429        $(zic-cmd) -p $(posixrules)
430 endif
431 
432-
433 $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
434+ifneq ($(cross-compiling),no)
435+$(objpfx)zic-native:  $(objpfx)scheck-native.o $(objpfx)ialloc-native.o
436+endif
437 
438 tz-cflags = -DTZDIR='"$(zonedir)"' \
439            -DTZDEFAULT='"$(localtime-file)"' \
Note: See TracBrowser for help on using the repository browser.