ola: fix compilation with GCC4
authorRosen Penev <rosenp@gmail.com>
Mon, 25 May 2020 02:56:00 +0000 (19:56 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 31 May 2020 21:02:47 +0000 (14:02 -0700)
The configure script confusingly sets CXXFLAGS to gnu++11 but does
not use that to check the important stuff. Fix that.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 8f7687833ec138af0283d542279b6a287e32e0ba)

net/ola/Makefile

index e6a701ebc2d564c319c5313f2aafa3ed5c1ddfac..99de0b5c7fb260f2f1eb0a3f4b370a9b4e725e2c 100644 (file)
@@ -65,6 +65,9 @@ HOST_CONFIGURE_ARGS += \
        --disable-doxygen-html \
        --disable-doxygen-doc
 
+HOST_CPPFLAGS += \
+       -std=gnu++11
+
 # only build the ola_protoc thingy
 define Host/Compile
        cd $(HOST_BUILD_DIR); \