mirror of
https://github.com/git/git.git
synced 2024-09-30 11:21:24 +02:00
Makefile: Set USE_PIC on x86-64
On some platforms, Git.xs refuses to link with the rest of git unless the latter is compiled with -fPIC, and we have USE_PIC control in the Makefile for the user to set it. At least we know x86-64 is such, so set it in the Makefile. The original suggestion by Marco Roeland conservatively did this only for Linux x86-64, but let's keep the Makefile simple and if it breaks somebody let them holler. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
f1b8fd4aba
commit
c35ebc902f
3
Makefile
3
Makefile
@ -341,6 +341,9 @@ endif
|
|||||||
ifneq (,$(findstring arm,$(uname_M)))
|
ifneq (,$(findstring arm,$(uname_M)))
|
||||||
ARM_SHA1 = YesPlease
|
ARM_SHA1 = YesPlease
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(uname_M),x86_64)
|
||||||
|
USE_PIC = YesPlease
|
||||||
|
endif
|
||||||
|
|
||||||
-include config.mak
|
-include config.mak
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user