summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2008-11-29 19:19:31 +0000
committerShawn O. Pearce <spearce@spearce.org>2008-12-02 09:21:50 -0800
commit80133dad8aa9b6d8bec7050a77d603c53ecd8512 (patch)
tree59b80d2729ddb3883b6033165586e4a8ba206e1b
parent43288a0733c1dc0a506a1e45087bb7f9bd87d047 (diff)
downloadlibgit2-80133dad8aa9b6d8bec7050a77d603c53ecd8512.tar.gz
Use cgcc in the sparse target
cgcc is the recommended way to run sparse, since it provides many -Defines suitable to the given gcc platform. For example, on some Ubuntu/glibc versions, a plain sparse invocation gives the following warning: "warning: This machine appears to be neither x86_64 nor i386." Using "cgcc -no-compile" instead eliminates this warning. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ea481c61..01ef4fad0 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ apidocs:
test: $(TEST_RUN)
sparse:
- sparse -DSPARSE_IS_RUNNING $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C)
+ cgcc -no-compile -DSPARSE_IS_RUNNING $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C)
install-headers: $(PUBLIC_HEADERS)
@mkdir -p /tmp/gitinc/git