1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Build tests with default optimization
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/984190
Forwarded: https://github.com/google/libnop/issues/32
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
GTEST_INCLUDE ?= $(GTEST_INSTALL)/include
HOST_CFLAGS := -g -O2 -Wall -Werror -Wextra -Iinclude
-HOST_CXXFLAGS := -std=c++14
+HOST_CXXFLAGS :=
HOST_LDFLAGS :=
ifeq ($(HOST_OS),Linux)
@@ -44,7 +44,7 @@
# Build tests if gtest is found.
M_NAME := test
-M_CFLAGS := -I$(GTEST_INCLUDE) -O0 -g
+M_CFLAGS := -I$(GTEST_INCLUDE) -Wno-error -g
M_LDFLAGS := -L$(GTEST_LIB) -lgtest -lgmock
M_OBJS := \
test/nop_tests.o \
|