[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patches] [patch] Use BUILD_CC when building for-host programs.



Greetings,

Attached patch is just a copy of
http://trac.cross-lfs.org/browser/patches/eglibc-2.10.1-fixes-2.patch?rev=6c2128063f779493ce4d966fb7eeb6a48c578272

Using "naked" gcc is almost certainly not correct: e.g. when bootstrapping
a new cross-toolchain, the 'gcc' may lack required --sysroot, etc. etc.

Besides, BUILD_CC is exactly the compiler that should be used for host.

Thanks,


P.S.

This is a trivial patch.
Google has blanket copyright assignment to FSF.

--
Paul Pluzhnikov

2012-02-10  Paul Pluzhnikov  <ppluzhnikov@xxxxxxxxxx>

	* timezone/Makefile: Use BUILD_CC instead of 'gcc'.
	* sunrpc/Makefile: Likewise.


Index: timezone/Makefile
===================================================================
--- timezone/Makefile	(revision 17085)
+++ timezone/Makefile	(working copy)
@@ -181,11 +181,11 @@
 $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
 
 $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
-	gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
+	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
 		-DCROSS_ZIC $(compile-mkdep-flags)
 
 $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
-	gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $@
+	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $@
 
 tz-cflags = -DTZDIR='"$(zonedir)"' \
 	    -DTZDEFAULT='"$(localtime-file)"' \
Index: sunrpc/Makefile
===================================================================
--- sunrpc/Makefile	(revision 17085)
+++ sunrpc/Makefile	(working copy)
@@ -175,11 +175,11 @@
 	$(+link)
 
 $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
-	gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
+	$(BUILD_CC) $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
 		$(OUTPUT_OPTION) $(compile-mkdep-flags)
 
 $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
-	gcc $^ -o $@
+	$(BUILD_CC) $^ -o $@
 
 # This makes sure -DNOT_IN_libc is passed for all these modules.
 cpp-srcs-left := $(rpcgen-objs:.o=.c)
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches