|
4 | 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. |
5 | 5 | export LC_ALL=C |
6 | 6 | set -e -o pipefail |
| 7 | +set -x |
7 | 8 | export TZ=UTC |
8 | 9 |
|
9 | 10 | # Although Guix _does_ set umask when building its own packages (in our case, |
@@ -171,6 +172,12 @@ make -C depends --jobs="$JOBS" HOST="$HOST" \ |
171 | 172 | ${SOURCES_PATH+SOURCES_PATH="$SOURCES_PATH"} \ |
172 | 173 | ${BASE_CACHE+BASE_CACHE="$BASE_CACHE"} \ |
173 | 174 | ${SDK_PATH+SDK_PATH="$SDK_PATH"} \ |
| 175 | + NO_QT=1 \ |
| 176 | + NO_QR=1 \ |
| 177 | + NO_ZMQ=1 \ |
| 178 | + NO_WALLET=1 \ |
| 179 | + NO_BDB=1 \ |
| 180 | + NO_USDT=1 \ |
174 | 181 | x86_64_linux_CC=x86_64-linux-gnu-gcc \ |
175 | 182 | x86_64_linux_CXX=x86_64-linux-gnu-g++ \ |
176 | 183 | x86_64_linux_AR=x86_64-linux-gnu-gcc-ar \ |
@@ -208,6 +215,9 @@ mkdir -p "$OUTDIR" |
208 | 215 | # CONFIGFLAGS |
209 | 216 | CONFIGFLAGS="-DREDUCE_EXPORTS=ON -DBUILD_BENCH=OFF -DBUILD_GUI_TESTS=OFF -DBUILD_FUZZ_BINARY=OFF" |
210 | 217 |
|
| 218 | +# BENCHCOINFLAGS |
| 219 | +BENCHCOINFLAGS="-DBUILD_CLI=OFF -DBUILD_TESTS=OFF -DCMAKE_CXX_FLAGS=-fno-omit-frame-pointer" |
| 220 | + |
211 | 221 | # CFLAGS |
212 | 222 | HOST_CFLAGS="-O2 -g" |
213 | 223 | HOST_CFLAGS+=$(find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;) |
@@ -242,17 +252,18 @@ mkdir -p "$DISTSRC" |
242 | 252 | cmake -S . -B build \ |
243 | 253 | --toolchain "${BASEPREFIX}/${HOST}/toolchain.cmake" \ |
244 | 254 | -DWITH_CCACHE=OFF \ |
245 | | - ${CONFIGFLAGS} |
| 255 | + ${CONFIGFLAGS} \ |
| 256 | + ${BENCHCOINFLAGS} |
246 | 257 |
|
247 | 258 | # Build Bitcoin Core |
248 | 259 | cmake --build build -j "$JOBS" ${V:+--verbose} |
249 | 260 |
|
250 | 261 | # Check that symbol/security checks tools are sane. |
251 | | - cmake --build build --target test-security-check ${V:+--verbose} |
| 262 | + # cmake --build build --target test-security-check ${V:+--verbose} |
252 | 263 | # Perform basic security checks on a series of executables. |
253 | | - cmake --build build -j 1 --target check-security ${V:+--verbose} |
| 264 | + # cmake --build build -j 1 --target check-security ${V:+--verbose} |
254 | 265 | # Check that executables only contain allowed version symbols. |
255 | | - cmake --build build -j 1 --target check-symbols ${V:+--verbose} |
| 266 | + # cmake --build build -j 1 --target check-symbols ${V:+--verbose} |
256 | 267 |
|
257 | 268 | mkdir -p "$OUTDIR" |
258 | 269 |
|
@@ -304,15 +315,15 @@ mkdir -p "$DISTSRC" |
304 | 315 | ( |
305 | 316 | cd installed |
306 | 317 |
|
307 | | - case "$HOST" in |
308 | | - *darwin*) ;; |
309 | | - *) |
310 | | - # Split binaries from their debug symbols |
311 | | - { |
312 | | - find "${DISTNAME}/bin" -type f -executable -print0 |
313 | | - } | xargs -0 -P"$JOBS" -I{} "${DISTSRC}/build/split-debug.sh" {} {} {}.dbg |
314 | | - ;; |
315 | | - esac |
| 318 | + # case "$HOST" in |
| 319 | + # *darwin*) ;; |
| 320 | + # *) |
| 321 | + # # Split binaries from their debug symbols |
| 322 | + # { |
| 323 | + # find "${DISTNAME}/bin" -type f -executable -print0 |
| 324 | + # } | xargs -0 -P"$JOBS" -I{} "${DISTSRC}/build/split-debug.sh" {} {} {}.dbg |
| 325 | + # ;; |
| 326 | + # esac |
316 | 327 |
|
317 | 328 | case "$HOST" in |
318 | 329 | *mingw*) |
|
0 commit comments