mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Don't pass default CFLAGS to c++
Fixes compilation with clang
This commit is contained in:
parent
77281cb4b8
commit
5726843e2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323299
23
editors/manedit/files/patch-Makefile.FreeBSD
Normal file
23
editors/manedit/files/patch-Makefile.FreeBSD
Normal file
@ -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)
|
||||
|
||||
|
||||
# ########################################################################
|
Loading…
Reference in New Issue
Block a user