From 9d605d309f7d7fe5d19c76cc1b039cc4c0a9b13e Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 7 Mar 2021 00:03:22 +0100 Subject: [PATCH] freebsd: do not strip binaries when installing, that breaks them (truncated ELF file) Note: I have not tried to strip binaries that had not rpath being patched, but for sure stripping breaks binaries produced with the current toolchain. $ ldd netradiant elf_load_section: truncated ELF file nr: signal 6 ./netradiant elf_load_section: truncated ELF file Abort trap --- easy-builder | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/easy-builder b/easy-builder index fb7cabc8..d2ff3da6 100755 --- a/easy-builder +++ b/easy-builder @@ -14,6 +14,11 @@ install_dir="${project_source_dir}/install${SUBDIR:+/${SUBDIR}}" install_target='install/strip' build_type='Release' +if [ "$(uname -s)" = 'FreeBSD' ] +then + install_target='install' +fi + _job_count=4 _nproc () { -- 2.39.2