summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/boost/files')
-rw-r--r--meta/recipes-support/boost/files/bjam-native-build-bjam.debug.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/files/bjam-native-build-bjam.debug.patch b/meta/recipes-support/boost/files/bjam-native-build-bjam.debug.patch
new file mode 100644
index 0000000000..9f8b7eac0a
--- /dev/null
+++ b/meta/recipes-support/boost/files/bjam-native-build-bjam.debug.patch
@@ -0,0 +1,50 @@
1From 619ada314ab26c0c9cbfe5702cd9c0caa8f6415a Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Mon, 3 Aug 2015 17:12:33 +0800
4Subject: [PATCH] bjam-native: build bjam.debug
5
6bjam is stripped by default, this causes QA warning while stripping it
7from do_populate_sysroot():
8
9 WARNING: File '.../tmp/sysroots/x86_64-linux/usr/bin/bjam' \
10 from bjam-native was already stripped, \
11 this will prevent future debugging!
12
13The JAM scripts allow to build unstripped version with '--debug'. Just
14build and install the bjam.debug to stop bjam from being stripped in
15compile step.
16
17Upstream-Status: Inappropriate [configuration]
18
19Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
20---
21 bootstrap.sh | 1 +
22 tools/build/src/engine/build.sh | 2 +-
23 2 files changed, 2 insertions(+), 1 deletion(-)
24
25diff --git a/bootstrap.sh b/bootstrap.sh
26index 98cf88b..54690aa 100755
27--- a/bootstrap.sh
28+++ b/bootstrap.sh
29@@ -228,6 +228,7 @@ if test "x$BJAM" = x; then
30 echo "tools/build/src/engine/$arch/b2"
31 cp "$BJAM" .
32 cp "$my_dir/tools/build/src/engine/$arch/bjam" .
33+ cp "$my_dir/tools/build/src/engine/${arch}.debug/bjam" bjam.debug
34
35 fi
36
37diff --git a/tools/build/src/engine/build.sh b/tools/build/src/engine/build.sh
38index 6dbc706..c69fdc7 100755
39--- a/tools/build/src/engine/build.sh
40+++ b/tools/build/src/engine/build.sh
41@@ -312,5 +312,5 @@ if test -x "./bootstrap/jam0" ; then
42 if test "${BJAM_UPDATE}" != "update" ; then
43 echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@" clean
44 fi
45- echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@"
46+ echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@" --debug
47 fi
48--
491.9.1
50