Skip to content

Makefile: drop duplicate %.a from test-helper link rule#2314

Open
HaraldNordgren wants to merge 1 commit into
git:masterfrom
HaraldNordgren:makefile-test-helper-dedup-libs
Open

Makefile: drop duplicate %.a from test-helper link rule#2314
HaraldNordgren wants to merge 1 commit into
git:masterfrom
HaraldNordgren:makefile-test-helper-dedup-libs

Conversation

@HaraldNordgren
Copy link
Copy Markdown
Contributor

No description provided.

@gitgitgadget-git
Copy link
Copy Markdown

There is an issue in commit 0146976:
Makefile: drop duplicate %.a from test-helper link rule

  • Commit not signed off

@HaraldNordgren HaraldNordgren force-pushed the makefile-test-helper-dedup-libs branch from 0146976 to 421259d Compare May 27, 2026 18:35
@HaraldNordgren HaraldNordgren force-pushed the makefile-test-helper-dedup-libs branch 2 times, most recently from 2d95869 to c17777a Compare May 31, 2026 22:36
Three link recipes list archive files twice on the link line: once
via $(filter %.a,$^) and again through $(LIBS), which expands to
$(filter-out %.o,$(GITLIBS)) $(EXTLIBS). On macOS the linker warns
about the duplicates:

  ld: warning: ignoring duplicate libraries: 'libgit.a', 'target/release/libgitcore.a'

Drop the redundant filter from the test-helper, fuzz-program, and
unit-test recipes so they match the pattern used by other link
recipes in the file.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
@HaraldNordgren HaraldNordgren force-pushed the makefile-test-helper-dedup-libs branch from c17777a to f616645 Compare May 31, 2026 22:44
@HaraldNordgren
Copy link
Copy Markdown
Contributor Author

/submit

@gitgitgadget-git
Copy link
Copy Markdown

Submitted as pull.2314.git.git.1780269406949.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-git-2314/HaraldNordgren/makefile-test-helper-dedup-libs-v1

To fetch this version to local tag pr-git-2314/HaraldNordgren/makefile-test-helper-dedup-libs-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-git-2314/HaraldNordgren/makefile-test-helper-dedup-libs-v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant