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