diff options
author | johans <johans@FreeBSD.org> | 2013-07-19 22:49:17 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2013-07-19 22:49:17 +0800 |
commit | ddbdec66fb1afae1abc654fd71f67a89636c8720 (patch) | |
tree | ca88300cc7135778fea6a434a62a1efcc085e2b0 /editors/manedit | |
parent | 61f2cd6218942bdf1f9d58aec8386fd0a924958c (diff) | |
download | freebsd-ports-gnome-ddbdec66fb1afae1abc654fd71f67a89636c8720.tar.gz freebsd-ports-gnome-ddbdec66fb1afae1abc654fd71f67a89636c8720.tar.zst freebsd-ports-gnome-ddbdec66fb1afae1abc654fd71f67a89636c8720.zip |
Don't pass default CFLAGS to c++
Fixes compilation with clang
Diffstat (limited to 'editors/manedit')
-rw-r--r-- | editors/manedit/files/patch-Makefile.FreeBSD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/manedit/files/patch-Makefile.FreeBSD b/editors/manedit/files/patch-Makefile.FreeBSD new file mode 100644 index 000000000000..01294aba954e --- /dev/null +++ b/editors/manedit/files/patch-Makefile.FreeBSD @@ -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) + + + # ######################################################################## |