Patchwork boost: pass -dumpversion to user-config.jam

login
register
mail settings
Submitter Yegor Yefremov
Date April 16, 2012, 1:06 p.m.
Message ID <1334581615-27627-1-git-send-email-yegorslists@googlemail.com>
Download mbox | patch
Permalink /patch/152855/
State Accepted
Headers show

Comments

Yegor Yefremov - April 16, 2012, 1:06 p.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

Short version avoids compiling problems with toolchains
containing long version string like Linaro toolchain.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/boost/boost.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Peter Korsgaard - April 16, 2012, 8:34 p.m.
>>>>> "yegorslists" == yegorslists  <yegorslists@googlemail.com> writes:

 yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
 yegorslists> Short version avoids compiling problems with toolchains
 yegorslists> containing long version string like Linaro toolchain.

Committed, but I dropped the head / sed invocations as -dumpversion
directly provides the version number.

Patch

diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index e25e24d..b106be7 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -10,7 +10,7 @@  BOOST_SOURCE = boost_$(BOOST_FILE_VERSION).tar.bz2
 BOOST_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/boost
 BOOST_INSTALL_STAGING = YES
 
-TARGET_CC_VERSION = $(shell $(TARGET_CC) --version | head -n 1 | sed -e "s/.*[[:space:]]\([[:digit:].]\+$$\)/\1/g" )
+TARGET_CC_VERSION = $(shell $(TARGET_CC) -dumpversion | head -n 1 | sed -e "s/.*[[:space:]]\([[:digit:].]\+$$\)/\1/g" )
 
 BOOST_DEPENDENCIES = bzip2 zlib