From d277cd8bb0bd86293d90017267e96112774a09bd Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Fri, 11 Jan 2013 17:29:47 +0100 Subject: [PATCH] test: fix googletest build (no inline htonl() etc when used as template arg) --- testApp/utils/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testApp/utils/Makefile b/testApp/utils/Makefile index 52af7be..f47fb9b 100644 --- a/testApp/utils/Makefile +++ b/testApp/utils/Makefile @@ -6,8 +6,11 @@ ifdef GTEST PROD_HOST += testUtils testUtils_SRCS += hexDumpTest.cpp testUtils_SRCS += inetAddressUtilsTest.cpp +# Avoid errors from inlined htonl() etc. used as template argument +inetAddressUtilsTest_CXXFLAGS=-O0 testUtils_SRCS += atomicBooleanTest.cpp testUtils_LIBS += pvAccess pvData Com gtest_main +gtest_main_DIR=$(GTEST)/lib endif #PROD_HOST += loggerTest