author | Dennis Stosberg <dennis@stosberg.net> | |
Tue, 15 Aug 2006 09:01:31 +0000 (11:01 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Aug 2006 10:13:47 +0000 (03:13 -0700) | ||
commit | 60a144f28047b4fa0e4a795972c483fa85a7d3c8 | |
tree | e06f3ff36980e068c9a3a036f2606122f8134f96 | tree | snapshot |
parent | d7b6c3c0f54b951c85cd41c6e6571c65cf090111 | commit | diff |
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>
- 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>
Makefile | diff | blob | history | |
config.mak.in | diff | blob | history | |
configure.ac | diff | blob | history |