dash/ci
UdjinM6 9718bb394b
build/ci: Fix --enable-glibc-back-compat and its usage (#4592)
* build: Fix `--enable-glibc-back-compat`

Compiling on Ubuntu 20.04 results in binaries that can't be run on older systems we still support (e.g. Ubuntu 16.04) and `contrib/devtools/symbol-check.py` complains about it.

Available versions for `log` for example:
$ objdump -T /lib/x86_64-linux-gnu/libm.so.6 | egrep -w 'log'
00000000000431b0 g    DF .text	0000000000000039  GLIBC_2.29  log
0000000000012360 g    DF .text	0000000000000066 (GLIBC_2.2.5) log

(i.e. the default one is 2.29)

This commit fixes the issue by picking the version we support instead of the default one.

Before:
$ objdump -T dashd | egrep -w 'log'
0000000000000000      DF *UND*	0000000000000000  GLIBC_2.29  log

After:
$ objdump -T dashd | egrep -w 'log'
0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 log

* ci: Add `make check-symbols` to the `build` step

* ci: Do not specify `--enable-glibc-back-compat` for non-release builds

* ci: Set correct LDFLAGS for the release build

* doc: Update docs to mention the need for `LDFLAGS=-static-libstdc++` when compiling for same host but different distro

* ci: Add `--with-sanitizers=undefined` back to `linux64` build
2021-11-30 14:13:18 +03:00
..
build_depends.sh merge #19240: macOS toolchain simplification and bump 2021-09-03 17:49:55 +05:30
build_src.sh build/ci: Fix --enable-glibc-back-compat and its usage (#4592) 2021-11-30 14:13:18 +03:00
Dockerfile.builder Cxx17 refac ci focal (#4509) 2021-10-12 02:57:06 +03:00
matrix.sh build/ci: Fix --enable-glibc-back-compat and its usage (#4592) 2021-11-30 14:13:18 +03:00
test_integrationtests.sh Merge #15943: tests: Fail if RPC has been added without tests 2021-10-12 15:56:33 -07:00
test_unittests.sh Partial merge #13863: travis: move script sections to files in .travis/ subject to shellcheck 2021-07-08 13:09:43 -04:00