svn commit: r323299 - head/editors/manedit/files
Johan van Selst
johans at FreeBSD.org
Fri Jul 19 14:49:18 UTC 2013
Author: johans
Date: Fri Jul 19 14:49:17 2013
New Revision: 323299
URL: http://svnweb.freebsd.org/changeset/ports/323299
Log:
Don't pass default CFLAGS to c++
Fixes compilation with clang
Added:
head/editors/manedit/files/patch-Makefile.FreeBSD (contents, props changed)
Added: head/editors/manedit/files/patch-Makefile.FreeBSD
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/manedit/files/patch-Makefile.FreeBSD Fri Jul 19 14:49:17 2013 (r323299)
@@ -0,0 +1,23 @@
+--- Makefile.FreeBSD.orig 2013-07-19 16:44:02.000000000 +0200
++++ Makefile.FreeBSD 2013-07-19 16:44:28.000000000 +0200
+@@ -56,7 +56,10 @@ CFLAGS += $(GTK_CFLAGS) -O2 -Wall \
+ -DPREFIX=\"$(PREFIX)\" \
+ -DLOCALBASE=\"$(LOCALBASE)\" -DX11BASE=\"$(X11BASE)\"
+
+-CPPFLAGS = -D__cplusplus -Dc_plusplus
++CPPFLAGS = $(CXXFLAGS) $(GTK_CFLAGS) -O2 -Wall \
++ -DPREFIX=\"$(PREFIX)\" \
++ -DLOCALBASE=\"$(LOCALBASE)\" -DX11BASE=\"$(X11BASE)\" \
++ -D__cplusplus -Dc_plusplus
+
+
+ # ########################################################################
+@@ -109,7 +112,7 @@ OBJ_CPP = $(SRC_CPP:.cpp=.o)
+ .c.o:
+ $(CC) -c $*.c $(INC) $(CFLAGS)
+ .cpp.o:
+- $(CPP) -c $*.cpp $(INC) $(CFLAGS) $(CPPFLAGS)
++ $(CPP) -c $*.cpp $(INC) $(CPPFLAGS)
+
+
+ # ########################################################################
More information about the svn-ports-head
mailing list