ar-response-files.patch 1.5 KB

12345678910111213141516171819202122232425262728
  1. diff --git a/src/build-data/ninja.in b/src/build-data/ninja.in
  2. index 414663a..b983a95 100644
  3. --- a/src/build-data/ninja.in
  4. +++ b/src/build-data/ninja.in
  5. @@ -59,7 +59,7 @@ default all
  6. rule link_static
  7. rspfile = %{response_file_dir}/static.txt
  8. rspfile_content = $in
  9. - command = %{ar_command} %{ar_options} %{ar_output_to}$out @%{response_file_dir}/static.txt
  10. + command = xargs %{ar_command} %{ar_options} %{ar_output_to}$out < %{response_file_dir}/static.txt
  11. build %{out_dir}/%{static_lib_name}: link_static %{join lib_objs}
  12. @@ -86,12 +86,12 @@ build %{out_dir}/%{soname_patch}: symlink %{out_dir}/%{shared_lib_name}
  13. rule link_cli
  14. rspfile = %{response_file_dir}/cli_${cli_name}.txt
  15. rspfile_content = $in
  16. - command = ${EXE_LINK_CMD} ${ABI_FLAGS} @%{response_file_dir}/cli_${cli_name}.txt ${BUILD_DIR_LINK_PATH} ${LANG_EXE_FLAGS} ${LDFLAGS} ${EXE_LINKS_TO} %{output_to_exe}$out
  17. + command = xargs ${EXE_LINK_CMD} ${ABI_FLAGS} ${BUILD_DIR_LINK_PATH} ${LANG_EXE_FLAGS} ${LDFLAGS} ${EXE_LINKS_TO} %{output_to_exe}$out < %{response_file_dir}/cli_${cli_name}.txt
  18. rule link_tests
  19. rspfile = %{response_file_dir}/tests.txt
  20. rspfile_content = $in
  21. - command = ${EXE_LINK_CMD} ${ABI_FLAGS} @%{response_file_dir}/tests.txt ${BUILD_DIR_LINK_PATH} ${LANG_EXE_FLAGS} ${LDFLAGS} %{test_exe_extra_ldflags} ${EXE_LINKS_TO} %{output_to_exe}$out
  22. + command = xargs ${EXE_LINK_CMD} ${ABI_FLAGS} ${BUILD_DIR_LINK_PATH} ${LANG_EXE_FLAGS} ${LDFLAGS} %{test_exe_extra_ldflags} ${EXE_LINKS_TO} %{output_to_exe}$out < %{response_file_dir}/tests.txt
  23. # Executable targets