freebsd-ports/games/qnetchess/files/patch-Makefile.FreeBSD
Andrej Zverev ab6a0fd8c3 Use CXXFLAGS instead CFLAGS for c++ app.
This will fix build with -std=gnu99 in future.

Submitted by: rdivacky [patch]
2009-02-23 17:49:12 +00:00

14 lines
476 B
Text

--- Makefile.FreeBSD.orig 2005-03-30 10:56:39.000000000 +0400
+++ Makefile.FreeBSD 2009-02-23 00:58:34.000000000 +0300
@@ -7,10 +7,8 @@
MOCS= mainwindow.h gamesocket.h gameboard.h
LOCALE_FILE= ${PROG}_ru
DFLAGS= -DLOCALE_FILE=\"${LOCALE_FILE}\"
-CFLAGS+= -O2 -W -Wall -Werror ${DFLAGS} -I${X11BASE}/include
+CXXFLAGS+= -O2 -W -Wall -Werror ${DFLAGS} -I${X11BASE}/include
LDADD+= -L${X11BASE}/lib
-CXXFLAGS+= ${CFLAGS}
-
.include "qt.FreeBSD.mk"
.include <bsd.prog.mk>