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