From: Thomas Debesse Date: Sat, 6 Mar 2021 23:03:22 +0000 (+0100) Subject: freebsd: do not strip binaries when installing, that breaks them (truncated ELF file) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d605d309f7d7fe5d19c76cc1b039cc4c0a9b13e;p=xonotic%2Fnetradiant.git 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 --- 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 () {