freebsd: do not strip binaries when installing, that breaks them (truncated ELF file)
authorThomas Debesse <dev@illwieckz.net>
Sat, 6 Mar 2021 23:03:22 +0000 (00:03 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 7 Mar 2021 01:06:23 +0000 (02:06 +0100)
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

index fb7cabc83bbeec7fab0089b8bfd6d0412bc80d09..d2ff3da6e826d0bba53e7ba32514a895642ee3e5 100755 (executable)
@@ -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 () {