boost: pass -dumpversion to user-config.jam
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 16 Apr 2012 13:06:55 +0000 (15:06 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 16 Apr 2012 20:33:08 +0000 (22:33 +0200)
Short version avoids compiling problems with toolchains
containing long version string like Linaro toolchain.

[Peter: drop head/sed as -dumpversion returns version directly]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/boost/boost.mk

index 8b8a3cfe5231c921406462248269541034914ffe..9da427af5e5023ea456d90786cbbc707c51af350 100644 (file)
@@ -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)
 
 BOOST_DEPENDENCIES = bzip2 zlib