Mercurial > hg > orthanc-gcp
comparison Resources/holy-build-box-internal.sh @ 0:520cba9a0d42
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jun 2019 14:57:22 +0200 |
parents | |
children | 39bdff8f0247 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:520cba9a0d42 |
---|---|
1 #!/bin/bash | |
2 set -e | |
3 | |
4 # Activate Holy Build Box environment. | |
5 source /hbb_exe/activate | |
6 | |
7 set -x | |
8 | |
9 mkdir /build | |
10 cd /build | |
11 | |
12 # Holy Build Box defines LDFLAGS as "-L/hbb_exe/lib | |
13 # -static-libstdc++". The "-L/hbb_exe/lib" option results in linking | |
14 # errors "undefined reference" to `std::__once_callable', | |
15 # 'std::__once_call' and '__once_proxy'. | |
16 export LDFLAGS=-static-libstdc++ | |
17 unset LDPATHFLAGS | |
18 unset SHLIB_LDFLAGS | |
19 unset LD_LIBRARY_PATH | |
20 unset LIBRARY_PATH | |
21 | |
22 cp -r /source /source-writeable | |
23 cmake /source-writeable \ | |
24 -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=ON \ | |
25 -DORTHANC_FRAMEWORK_SOURCE=web \ | |
26 -DCMAKE_INSTALL_PREFIX=/target | |
27 | |
28 make -j`nproc` | |
29 | |
30 make install |