summaryrefslogtreecommitdiff
path: root/lang/cocor/files/patch-cplus2__unix.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cocor/files/patch-cplus2__unix.mk')
-rw-r--r--lang/cocor/files/patch-cplus2__unix.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/cocor/files/patch-cplus2__unix.mk b/lang/cocor/files/patch-cplus2__unix.mk
new file mode 100644
index 000000000000..ff44a81d1ab5
--- /dev/null
+++ b/lang/cocor/files/patch-cplus2__unix.mk
@@ -0,0 +1,30 @@
+--- cplus2/unix.mk.orig 1999-11-21 15:27:41.000000000 +0900
++++ cplus2/unix.mk 2010-01-26 03:46:07.000000000 +0900
+@@ -11,16 +11,16 @@
+
+ #CC sets the name of the compiler to use (cc, gcc, etc)
+ #You will have to change this to suit your system
+-#CC = g++
++CC = ${CXX}
+
+ AR = ar
+-CFLAGS = -g
++CFLAGS = ${CXXFLAGS}
+ DOS2UNIX = ../dos2unix.sh
+
+-%.o: %.cpp
++.cpp.o:
+ $(CC) -c $(CFLAGS) $< -o $@
+
+-%.o: %.cxx
++.cxx.o:
+ $(CC) -c $(CFLAGS) $< -o $@
+
+ all: cr_lib.a
+@@ -46,3 +46,6 @@
+ \rm -f *.o
+ \rm -f *.a
+
++
++
++