]> git.ipfire.org Git - thirdparty/git.git/commit
config.mak.uname: avoid macOS linker warning on Xcode 16.3+
authorHarald Nordgren <haraldnordgren@gmail.com>
Tue, 2 Jun 2026 07:37:58 +0000 (07:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jun 2026 08:30:01 +0000 (17:30 +0900)
commit5cd4d0d8500c6ef1b102f5cb35187a91c299f013
tree5b633df687caa522722c127982d78eff83532e6e
parent67ad42147a7acc2af6074753ebd03d904476118f
config.mak.uname: avoid macOS linker warning on Xcode 16.3+

Building on macOS with Xcode 16.3 or newer emits:

    ld: warning: reducing alignment of section __DATA,__common
    from 0x8000 to 0x4000 because it exceeds segment maximum
    alignment

Pass -fno-common when "ld -v" reports ld-1167 or newer, so tentative
definitions of large arrays go into BSS instead of __DATA,__common.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname