summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-09-14 11:03:04 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2017-09-14 11:03:07 +0100
commit910e6d08f7eb96c9e7d2bc02251b4856263e450b (patch)
tree10797294bb63a1830f8c5c04c73924abec87466f
parent87423c55bc940f60107b48cbbe275b7c0be32389 (diff)
downloadbuildstream-jonathan/source-bundle-workaround.tar.gz
Be more explicit on where the gcc dirs are in the bootstrapjonathan/source-bundle-workaround
It's possible for the gcc binary to be in /tools, but the libs we want to be in /usr/lib. gcc will by default look in a dir related to where it found the gcc binary.
-rw-r--r--buildstream/data/build-module.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/data/build-module.sh.in b/buildstream/data/build-module.sh.in
index d67ee9a9e..0f137068a 100644
--- a/buildstream/data/build-module.sh.in
+++ b/buildstream/data/build-module.sh.in
@@ -26,10 +26,14 @@ mkdir -p '{install_root}'
cp -a "$SRCDIR/{name}/." '{build_root}'
cd '{build_root}'
+# dodgy hack because /usr/bin is a symlink to /tools/bin
+export GCC_EXEC_PREFIX='/usr/lib/gcc/'
+
export PREFIX='{install_root}'
export {variables}
+
# Build the module
{commands}