]> git.pld-linux.org Git - packages/LeakTracer.git/blame - LeakTracer-Makefile.patch
- fix behaviour on 64-bit platofrms.
[packages/LeakTracer.git] / LeakTracer-Makefile.patch
CommitLineData
49f88aa9
PS
1--- LeakTracer/Makefile.orig 2003-11-18 14:42:21.000000000 +0100
2+++ LeakTracer/Makefile 2005-12-10 17:01:40.475210000 +0100
3@@ -1,4 +1,4 @@
4-CC = g++
5+CXX := g++
6
7 # Source files
8 SRC := LeakTracer.cc
9@@ -7,7 +7,7 @@
10 THREAD=-DTHREAD_SAVE -D_REENTRANT -D_THREAD_SAFE -pthread
11
12 # Common flags
13-C_FLAGS = -g -pipe -Wall -W $(THREAD)
14+C_FLAGS = -Wall -W $(THREAD) $(CXXFLAGS)
15 O_FLAGS = $(C_FLAGS)
16
17 # Object files
18@@ -32,16 +32,16 @@
19 (cd .. && tar cvfz /u/erwin/drylock/LeakTracer/LeakTracer.tar.gz -X LeakTracer/.tarexcl LeakTracer/)
20
21 $(OBJ_DIR)/%.o: %.cc
22- $(CC) -fPIC -c $(C_FLAGS) $< -o $@
23+ $(CXX) -fPIC -c $(C_FLAGS) $< -o $@
24
25 $(OBJ_DIR)/%.so : $(OBJ_DIR)/%.o
26- $(CC) $(O_FLAGS) -shared -o $@ $<
27+ $(CXX) $(O_FLAGS) -shared -o $@ $<
28
29 README.html: README
30 /u/erwin/ed/mcl/util/htmlize.pl README
31
32 test:
33- $(CC) $(C_FLAGS) test.cc -o test
34+ $(CXX) $(C_FLAGS) test.cc -o test
35 ./test
36 ./LeakCheck ./test
37 ./leak-analyze ./test
This page took 0.085663 seconds and 4 git commands to generate.