Commit | Line | Data |
---|---|---|
56162e2a JRJ |
1 | # Create build directory |
2 | rm -rf $WORKSPACE/build | |
3 | mkdir -p $WORKSPACE/build | |
4 | ||
5 | PREFIX="$WORKSPACE/build" | |
6 | ||
7 | ./bootstrap | |
8 | ||
9 | CONF_OPTS="" | |
10 | ||
11 | case "$conf" in | |
12 | static) | |
13 | echo "Static build" | |
14 | CONF_OPTS="--enable-static --disable-shared" | |
15 | ;; | |
16 | tls_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 | ;; | |
24 | esac | |
25 | ||
26 | ./configure --prefix=$PREFIX $CONF_OPTS | |
27 | ||
28 | make | |
29 | make install | |
30 | make clean | |
31 | ||
32 | # Cleanup rpath and libtool .la files | |
33 | find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \; | |
34 | find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \; |