From: Jonathan Rajotte Julien Date: Mon, 12 Jan 2015 21:00:16 +0000 (-0500) Subject: build script stable 0.7 0.8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5ee5d15d1c9e1584778c3b8b39e78a8708172a12;p=lttng-ci.git build script stable 0.7 0.8 --- diff --git a/userspace-rcu/liburcu-0.7.sh b/userspace-rcu/liburcu-0.7.sh new file mode 100755 index 0000000..41da104 --- /dev/null +++ b/userspace-rcu/liburcu-0.7.sh @@ -0,0 +1,34 @@ +# Create build directory +rm -rf $WORKSPACE/build +mkdir -p $WORKSPACE/build + +PREFIX="$WORKSPACE/build" + +./bootstrap + +CONF_OPTS="" + +case "$conf" in +static) + echo "Static build" + CONF_OPTS="--enable-static --disable-shared" + ;; +tls_fallback) + echo "Using pthread_getspecific() to emulate TLS" + CONF_OPTS="--disable-compiler-tls" + ;; +*) + echo "Standard build" + CONF_OPTS="" + ;; +esac + +./configure --prefix=$PREFIX $CONF_OPTS + +make +make install +make clean + +# Cleanup rpath and libtool .la files +find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \; +find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \; diff --git a/userspace-rcu/liburcu-0.8.sh b/userspace-rcu/liburcu-0.8.sh new file mode 100755 index 0000000..41da104 --- /dev/null +++ b/userspace-rcu/liburcu-0.8.sh @@ -0,0 +1,34 @@ +# Create build directory +rm -rf $WORKSPACE/build +mkdir -p $WORKSPACE/build + +PREFIX="$WORKSPACE/build" + +./bootstrap + +CONF_OPTS="" + +case "$conf" in +static) + echo "Static build" + CONF_OPTS="--enable-static --disable-shared" + ;; +tls_fallback) + echo "Using pthread_getspecific() to emulate TLS" + CONF_OPTS="--disable-compiler-tls" + ;; +*) + echo "Standard build" + CONF_OPTS="" + ;; +esac + +./configure --prefix=$PREFIX $CONF_OPTS + +make +make install +make clean + +# Cleanup rpath and libtool .la files +find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \; +find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;