[Buildroot] [PATCH] package/pcm-tools: fix build with GCC 4.8.2

Carlos Santos casantos at datacom.com.br
Sat Dec 15 01:38:13 UTC 2018


Pass $(TARGET_CONFIGURE_OPTS) as arguments to make and add "-std=c++11"
to CXXFLAGS, forcing C++ 2011 standard (it's experimental in GCC 4.8.2
but goot enough to build pcm-tools).

Fixes:
  http://autobuild.buildroot.net/results/cf3c79f0c94be8a184d532570bdb1893090316a3/

Signed-off-by: Carlos Santos <casantos at datacom.com.br>
---
 package/pcm-tools/pcm-tools.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/pcm-tools/pcm-tools.mk b/package/pcm-tools/pcm-tools.mk
index c0d6d8bc52..98b562eac4 100644
--- a/package/pcm-tools/pcm-tools.mk
+++ b/package/pcm-tools/pcm-tools.mk
@@ -15,7 +15,8 @@ PCM_TOOLS_EXE_FILES = \
 
 define PCM_TOOLS_BUILD_CMDS
 	touch $(@D)/daemon-binaries
-	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+		CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
 		UNAME=Linux HOST=_LINUX
 endef
 
-- 
2.19.2



More information about the buildroot mailing list