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>
Junio C Hamano committed
Jun 28, 2006 at 22:08 UTC
c35ebc902fd5c48c978d0d4cfab52ccdb4b11f54
1 file changed
+3
Makefile
+3
@@ -341,6 +341,9 @@ endif
341
ifneq (,$(findstring arm,$(uname_M)))
342
ARM_SHA1 = YesPlease
343
endif
344
+ifeq ($(uname_M),x86_64)
345
+ USE_PIC = YesPlease
346
+endif
347
348
-include config.mak
349