Merge packaging scripts from master branch
[lttng-ci.git] / userspace-rcu / build.sh
CommitLineData
408bd1cc
JRJ
1# Create build directory
2rm -rf $WORKSPACE/build
3mkdir -p $WORKSPACE/build
4
5PREFIX="$WORKSPACE/build"
6
7./bootstrap
8
9CONF_OPTS=""
10
11case "$conf" in
12static)
13 echo "Static build"
14 CONF_OPTS="--enable-static --disable-shared"
15 ;;
16tls_fallback)
17 echo "Using pthread_getspecific() to emulate TLS"
18 CONF_OPTS="--disable-compiler-tls"
19 ;;
20*)
21 echo "Standard build"
22 CONF_OPTS=""
23 ;;
24esac
25
26./configure --prefix=$PREFIX $CONF_OPTS
27
28make
29make install
30make clean
31
32# Cleanup rpath and libtool .la files
33find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
34find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
This page took 0.023191 seconds and 4 git commands to generate.