summaryrefslogtreecommitdiff
path: root/config.mak.in
diff options
context:
space:
mode:
authorDennis Stosberg <dennis@stosberg.net>2006-08-15 11:01:31 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-15 03:13:47 -0700
commit60a144f28047b4fa0e4a795972c483fa85a7d3c8 (patch)
treee06f3ff36980e068c9a3a036f2606122f8134f96 /config.mak.in
parentd7b6c3c0f54b951c85cd41c6e6571c65cf090111 (diff)
downloadgit-60a144f28047b4fa0e4a795972c483fa85a7d3c8.tar.gz
Fix compilation with Sun CC
- Add the CFLAGS variable to config.mak.in to override the Makefile's default, which is gcc-specific and won't work with Sun CC. - Prefer "cc" over "gcc", because Pasky's Git.pm will not compile with gcc on Solaris at all. On Linux and the free BSDs "cc" is linked to "gcc" anyway. - Set correct flag to generate position-independent code. - Add "-xO3" (= use default optimization level) to CFLAGS. Signed-off-by: Dennis Stosberg <dennis@stosberg.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.mak.in')
-rw-r--r--config.mak.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.mak.in b/config.mak.in
index 369e6116e0..addda4f16c 100644
--- a/config.mak.in
+++ b/config.mak.in
@@ -2,6 +2,8 @@
# @configure_input@
CC = @CC@
+CFLAGS = @CFLAGS@
+PIC_FLAG = @PIC_FLAG@
AR = @AR@
TAR = @TAR@
#INSTALL = @INSTALL@ # needs install-sh or install.sh in sources