aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-29 00:34:51 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-29 18:52:38 -0700
commitf7661ce0b8ee068e53d57249625199dda2829e30 (patch)
treefd31822f80f8929d0bdd75e6e376c3cb9199dc05 /Makefile
parent18b0fc1ce1ef92716d4c5d5c7acd5d5a61a0a556 (diff)
downloadgit-f7661ce0b8ee068e53d57249625199dda2829e30.tar.gz
git-f7661ce0b8ee068e53d57249625199dda2829e30.tar.xz
Remove -fPIC which was only needed for Git.xs
The distinction between BASIC_ vs ALL_ is still kept, since it is not Git.xs specific -- we could face the same issue when we do other language bindings (e.g. Python). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 0 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 8a7f29bc9..187596573 100644
--- a/Makefile
+++ b/Makefile
@@ -60,9 +60,6 @@ all:
# on non-x86 architectures (e.g. PowerPC), while the OpenSSL version (default
# choice) has very fast version optimized for i586.
#
-# Define USE_PIC if you need the main git objects to be built with -fPIC
-# in order to build and link perl/Git.so. x86-64 seems to need this.
-#
# Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
#
# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
@@ -112,7 +109,6 @@ uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
# CFLAGS and LDFLAGS are for the users to override from the command line.
CFLAGS = -g -O2 -Wall
-PIC_FLAG = -fPIC
LDFLAGS =
ALL_CFLAGS = $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
@@ -402,12 +398,6 @@ endif
ifneq (,$(findstring arm,$(uname_M)))
ARM_SHA1 = YesPlease
endif
-ifeq ($(uname_M),sun4u)
- USE_PIC = YesPlease
-endif
-ifeq ($(uname_M),x86_64)
- USE_PIC = YesPlease
-endif
-include config.mak.autogen
-include config.mak
@@ -546,9 +536,6 @@ else
endif
endif
endif
-ifdef USE_PIC
- ALL_CFLAGS += $(PIC_FLAG)
-endif
ifdef NO_ACCURATE_DIFF
BASIC_CFLAGS += -DNO_ACCURATE_DIFF
endif