Make warning CXXFLAGS configurable
This turns off -Werror by default except in the Debian package. -Werror is inherently unportable and breaks things on OS X. While it can cause problems in Debian too, this is at least a little better. It also turns off -pedantic in src/protobufs, because apparently protoc output doesn’t compile with -pedantic on all platforms. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
8fa8bac35e
commit
aad760e7d6
@@ -1,5 +1,5 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../statesync -I$(srcdir)/../terminal -I$(srcdir)/../network -I$(srcdir)/../crypto -I$(builddir)/../protobufs -I$(srcdir)/../util
|
||||
AM_CXXFLAGS = -pedantic -Wno-long-long -Werror -Wall -Wextra -Weffc++ -fno-default-inline -pipe
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) -fno-default-inline -pipe
|
||||
LIBS = $(protobuf_LIBS)
|
||||
LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lutil -lrt -lm -lutempter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user