rgb-cln/tools
Vasil Dimov b2c4d5e952 build: fix developer mode compilation on FreeBSD
Recent FreeBSD versions use LLVM's lld as a linker, not the GNU ld.
Their behavior slightly differs, so adapt the build system to handle
either one.

* The LLVM's linker prints "undefined symbol:" instead of
  "undefined reference to". Tweak tools/mockup.sh to also look for that
  message.

* The LLVM's linker may only print the first dozen errors (omitting
  the rest to avoid flooding the screen). tools/update-mocks.sh relies
  on getting all errors as it extracts the missing symbols' names from
  the error output and creates mocks for them. Detect if errors were
  omitted and re-run, telling the linker to not omit any. The GNU linker
  does not support -error-limit=0, so unfortunately we can't just run
  with that option unconditionally from the first attempt.

* Nit: FreeBSD's sed(1) prints "t" for "\t" instead of a horizontal tab.
  Use a verbatim tab in the command, instead of "\t" which works on
  both.

Changelog-Fixed: Developer mode compilation on FreeBSD.
2020-01-02 16:56:20 +01:00
..
gen tools: don't use bytelength as array length for arrays in TLVs. 2019-12-13 16:36:40 +01:00
test tools: add ability to wrap wire messages with ifs 2019-10-10 05:57:45 +00:00
Makefile tool/hsmtool: add a 'guesstoremote' command 2019-11-29 21:19:05 +01:00
bench-gossipd.sh gossipd: remove unnecessary dev_unknown_channel_satoshis arg. 2019-05-22 11:28:44 +00:00
build-release.sh doc/MAKING-RELEASES.md: update. 2019-08-19 03:43:13 +00:00
check-bolt.c check-bolt: escape { and }. 2019-09-22 01:17:11 +00:00
check-includes.sh devtools/create-gossipstore: clean up enough to pass check-source. 2019-04-08 04:41:43 +00:00
check-manpage.sh doc/Makefile: adapt 'check-manpages' to markdown 2019-08-22 01:35:01 +00:00
check-markdown.sh tools: use /usr/bin/env bash instead of /bin/bash 2018-07-24 00:25:43 +00:00
check-setup_locale.sh tools/check-setup_locale.sh: don't get caught by main in non-C files. 2019-02-08 01:10:17 +00:00
check-spelling.sh spelling: Check LockTime Verify. 2018-10-23 16:55:35 +02:00
docker-entrypoint.sh [Docker] Make sure lightningd receive SIGTERM 2018-12-29 13:29:54 +01:00
generate-wire.py lightningd: save the fee_states into the database. 2019-12-12 22:15:48 +01:00
headerversions.c tools: Add missing unistd.h header 2018-12-29 13:34:23 +01:00
hsmtool.c hsmtool: fixup miscount on params 2019-12-11 20:41:09 +01:00
mockup.sh build: fix developer mode compilation on FreeBSD 2020-01-02 16:56:20 +01:00
refresh-submodules.sh build: allow building from source zip file. 2019-01-15 02:18:30 +00:00
rel.sh tools: use /usr/bin/env bash instead of /bin/bash 2018-07-24 00:25:43 +00:00
repro-build.sh remove libbase58, use base58 from libwally (#2594) 2019-04-30 23:07:31 +02:00
update-mocks.sh build: fix developer mode compilation on FreeBSD 2020-01-02 16:56:20 +01:00