diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-01-31 14:12:13 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-01-31 14:12:13 -0500 |
commit | 11f358cafab2da28692fdaa837dfbcc3cc163736 (patch) | |
tree | 9ed443d35c71e4c27a2803733c41d3e8a2322a73 /scripts/build.sh | |
parent | 73a53c48901e120a06d221c8cb4f02076e3b9888 (diff) | |
download | docker-python-11f358cafab2da28692fdaa837dfbcc3cc163736.tar.gz |
Refactor all
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index f7c7a2d..63f0a00 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,13 +1,22 @@ -#!/bin/bash -e +#!/bin/bash -x +prefix="${TOOLCHAIN}" taskdir=${TOOLCHAIN_BUILD}/etc/tasks + export _maxjobs=$(getconf _NPROCESSORS_ONLN) +export PATH="${prefix}/bin:${PATH}" +export CFLAGS="-I${prefix}/include" +export LDFLAGS="-L${prefix}/lib -Wl,-rpath=${prefix}/lib" +export PKG_CONFIG_PATH="${prefix}/lib/pkgconfig" +export PREFIX="${prefix}" if [[ ! -d ${taskdir} ]]; then echo "No tasks. ${taskdir} does not exist." exit 1 fi +printenv | sort + for task in ${taskdir}/* do # Check for execution permission |