diff --git a/meson.build b/meson.build index 4fdb4c5405..fa104a3efd 100644 --- a/meson.build +++ b/meson.build @@ -1935,12 +1935,13 @@ if curl.found() dependencies: [libgit_commonmain, curl], ) - test_dependencies += executable('git-remote-http', + git_remote_http = executable('git-remote-http', sources: 'remote-curl.c', dependencies: [libgit_curl], install: true, install_dir: git_exec_path, ) + test_dependencies += git_remote_http test_dependencies += executable('git-http-fetch', sources: 'http-fetch.c', @@ -1960,7 +1961,7 @@ if curl.found() foreach alias : [ 'git-remote-https', 'git-remote-ftp', 'git-remote-ftps' ] test_dependencies += executable(alias, - sources: 'remote-curl.c', + objects: git_remote_http.extract_all_objects(recursive: false), dependencies: [libgit_curl], )