From e77354d28f8087fed75b2fe66fbd50799e68eca7 Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Sun, 12 Jul 2015 16:35:28 +0200 Subject: [PATCH] boost: use backtick instead of $(shell ...) make function Also remove the variables TARGET_CC_VERSION and HOST_CC_VERSION which lack the BOOST_ prefix and are used only once. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- package/boost/boost.mk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package/boost/boost.mk b/package/boost/boost.mk index dbb5de521f..cc3ba9ee50 100644 --- a/package/boost/boost.mk +++ b/package/boost/boost.mk @@ -11,9 +11,6 @@ BOOST_INSTALL_STAGING = YES BOOST_LICENSE = Boost Software License 1.0 BOOST_LICENSE_FILES = LICENSE_1_0.txt -TARGET_CC_VERSION = $(shell $(TARGET_CC) -dumpversion) -HOST_CC_VERSION = $(shell $(HOSTCC) -dumpversion) - HOST_BOOST_DEPENDENCIES = # keep host variant as minimal as possible @@ -111,13 +108,13 @@ BOOST_LAYOUT = $(call qstrip, $(BR2_PACKAGE_BOOST_LAYOUT)) define BOOST_CONFIGURE_CMDS (cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS)) - echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) : \"$(BOOST_TARGET_CXXFLAGS)\" \"$(TARGET_LDFLAGS)\" ;" > $(@D)/user-config.jam + echo "using gcc : `$(TARGET_CC) -dumpversion` : $(TARGET_CXX) : \"$(BOOST_TARGET_CXXFLAGS)\" \"$(TARGET_LDFLAGS)\" ;" > $(@D)/user-config.jam echo "" >> $(@D)/user-config.jam endef define HOST_BOOST_CONFIGURE_CMDS (cd $(@D) && ./bootstrap.sh $(HOST_BOOST_FLAGS)) - echo "using gcc : $(HOST_CC_VERSION) : $(HOSTCXX) : \"$(HOST_CXXFLAGS)\" \"$(HOST_LDFLAGS)\" ;" > $(@D)/user-config.jam + echo "using gcc : `$(HOST_CC) -dumpversion` : $(HOSTCXX) : \"$(HOST_CXXFLAGS)\" \"$(HOST_LDFLAGS)\" ;" > $(@D)/user-config.jam echo "" >> $(@D)/user-config.jam endef -- 2.30.2