File: autotools-linux

package info (click to toggle)
libtoxcore 0.2.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,992 kB
  • sloc: ansic: 70,235; cpp: 14,770; sh: 1,576; python: 649; makefile: 255; perl: 39
file content (24 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -eu

NPROC=$(nproc)

. ".github/scripts/flags-$CC.sh"

add_ld_flag -Wl,-z,defs

# Make compilation error on a warning
add_flag -Werror

add_config_flag --disable-ipv6
add_config_flag --enable-daemon
add_config_flag --with-log-level=TRACE

autoreconf -fi
mkdir -p _build
cd _build # pushd
../configure "${CONFIG_FLAGS[@]}" || (cat config.log && false)
make "-j$NPROC" -k CFLAGS="$C_FLAGS" LDFLAGS="$LD_FLAGS"
make -j50 -k distcheck DISTCHECK_CONFIGURE_FLAGS="${CONFIG_FLAGS[*]}" || (find . -name test-suite.log -exec cat {} + && false)
cd - # popd