Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/pcm-tools: fix build with GCC 4.8.2
@ 2018-12-15  1:38 Carlos Santos
  2018-12-16 15:39 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Santos @ 2018-12-15  1:38 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/pcm-tools: fix build with GCC 4.8.2
  2018-12-15  1:38 [Buildroot] [PATCH] package/pcm-tools: fix build with GCC 4.8.2 Carlos Santos
@ 2018-12-16 15:39 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 15:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 14 Dec 2018 23:38:13 -0200, Carlos Santos wrote:
> Pass $(TARGET_CONFIGURE_OPTS) as arguments to make and add "-std=c++11"

TARGET_CONFIGURE_OPTS were already passed as argument: they are already
passed to the right hand-side of $(MAKE), so I dropped this particular
change.

> to CXXFLAGS, forcing C++ 2011 standard (it's experimental in GCC 4.8.2
> but goot enough to build pcm-tools).

This was enough to fix the build failure.

Applied with this change. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-16 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-15  1:38 [Buildroot] [PATCH] package/pcm-tools: fix build with GCC 4.8.2 Carlos Santos
2018-12-16 15:39 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox