]> granicus.if.org Git - strace/blob - travis-build.sh
msghdr.c: print unrecognized struct cmsghdr.cmsg_type in hex
[strace] / travis-build.sh
1 #!/bin/sh -ex
2
3 case "$CC" in
4         gcc)
5                 ENABLE_GCC_WERROR=--enable-gcc-Werror
6                 ;;
7         clang-*)
8                 # clang -mx32 fails with the following error:
9                 # clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
10                 export st_cv_mx32_runtime=no
11                 ;;
12 esac
13
14 case "${TARGET-}" in
15         x32)
16                 CC="$CC -mx32"
17                 ;;
18         x86)
19                 CC="$CC -m32"
20                 export DISTCHECK_CONFIGURE_FLAGS='--build=i686-pc-linux-gnu'
21                 ;;
22 esac
23
24 $CC --version
25 export CC_FOR_BUILD="$CC"
26
27 ./git-set-file-times
28 ./bootstrap
29 ./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
30
31 j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
32 make -k $j distcheck VERBOSE=${VERBOSE-}