SOURCES: LeakTracer-Makefile.patch (NEW) - use cxx(flags).
pluto
pluto at pld-linux.org
Sat Dec 10 17:22:47 CET 2005
Author: pluto Date: Sat Dec 10 16:22:47 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use cxx(flags).
---- Files affected:
SOURCES:
LeakTracer-Makefile.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/LeakTracer-Makefile.patch
diff -u /dev/null SOURCES/LeakTracer-Makefile.patch:1.1
--- /dev/null Sat Dec 10 17:22:47 2005
+++ SOURCES/LeakTracer-Makefile.patch Sat Dec 10 17:22:42 2005
@@ -0,0 +1,37 @@
+--- LeakTracer/Makefile.orig 2003-11-18 14:42:21.000000000 +0100
++++ LeakTracer/Makefile 2005-12-10 17:01:40.475210000 +0100
+@@ -1,4 +1,4 @@
+-CC = g++
++CXX := g++
+
+ # Source files
+ SRC := LeakTracer.cc
+@@ -7,7 +7,7 @@
+ THREAD=-DTHREAD_SAVE -D_REENTRANT -D_THREAD_SAFE -pthread
+
+ # Common flags
+-C_FLAGS = -g -pipe -Wall -W $(THREAD)
++C_FLAGS = -Wall -W $(THREAD) $(CXXFLAGS)
+ O_FLAGS = $(C_FLAGS)
+
+ # Object files
+@@ -32,16 +32,16 @@
+ (cd .. && tar cvfz /u/erwin/drylock/LeakTracer/LeakTracer.tar.gz -X LeakTracer/.tarexcl LeakTracer/)
+
+ $(OBJ_DIR)/%.o: %.cc
+- $(CC) -fPIC -c $(C_FLAGS) $< -o $@
++ $(CXX) -fPIC -c $(C_FLAGS) $< -o $@
+
+ $(OBJ_DIR)/%.so : $(OBJ_DIR)/%.o
+- $(CC) $(O_FLAGS) -shared -o $@ $<
++ $(CXX) $(O_FLAGS) -shared -o $@ $<
+
+ README.html: README
+ /u/erwin/ed/mcl/util/htmlize.pl README
+
+ test:
+- $(CC) $(C_FLAGS) test.cc -o test
++ $(CXX) $(C_FLAGS) test.cc -o test
+ ./test
+ ./LeakCheck ./test
+ ./leak-analyze ./test
================================================================
More information about the pld-cvs-commit
mailing list