120-use_host_cflags.patch 885 B

12345678910111213141516171819202122
  1. --- a/libc/sunrpc/Makefile
  2. +++ b/libc/sunrpc/Makefile
  3. @@ -175,7 +175,7 @@ $(objpfx)rpcgen: $(addprefix $(objpfx),$
  4. $(+link)
  5. $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
  6. - gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
  7. + gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ $(HOST_CFLAGS) \
  8. $(OUTPUT_OPTION) $(compile-mkdep-flags)
  9. $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
  10. --- a/libc/timezone/Makefile
  11. +++ b/libc/timezone/Makefile
  12. @@ -182,7 +182,7 @@ $(objpfx)zic: $(addprefix $(objpfx), $(z
  13. $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
  14. gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
  15. - -DCROSS_ZIC $(compile-mkdep-flags)
  16. + -DCROSS_ZIC $(HOST_CFLAGS) $(compile-mkdep-flags)
  17. $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
  18. gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $@