7bccb9e6a2ad7e645ce8f490b53afc433f087905
1 # Create build directory
2 rm -rf $WORKSPACE/build
3 mkdir
-p $WORKSPACE/build
5 PREFIX
="$WORKSPACE/build"
14 CONF_OPTS
="--enable-static --disable-shared"
17 echo "Using pthread_getspecific() to emulate TLS"
18 CONF_OPTS
="--disable-compiler-tls"
27 # oot : out-of-tree build
28 # dist: build via make dist
29 # * : normal tree build
31 # Make sure to move to the build_path and configure
37 echo "Out of tree build"
38 BUILD_PATH
=$WORKSPACE/oot
40 cd $BUILD_PATH$WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
43 echo "Distribution out of tree build"
44 BUILD_PATH
=`mktemp -d`
46 # Initial configure and generate tarball
51 cp *.
tar.
* $BUILD_PATH/
54 # Ignore level 1 of tar
55 tar xvf
*.
tar.
* --staticrip 1
57 $BUILD_PATH/configure
--prefix=$PREFIX $CONF_OPTS
60 echo "Standard tree build"
62 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS;;
69 # Cleanup rpath and libtool .la files
70 find $WORKSPACE/build
/lib
-name "*.so" -exec chrpath
--delete {} \
;
71 find $WORKSPACE/build
/lib
-name "*.la" -exec rm -f {} \
;
73 if [ $build = "dist" ] then
This page took 0.040781 seconds and 4 git commands to generate.