From: Thomas Debesse Date: Mon, 8 Mar 2021 13:25:43 +0000 (+0100) Subject: linux: do not strip binaries (does not work well with the non-PIE hack) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de31e2b1e54ac2cb48eccb91595065eba6f16597;p=xonotic%2Fnetradiant.git linux: do not strip binaries (does not work well with the non-PIE hack) --- diff --git a/easy-builder b/easy-builder index ad55492c..9fe738b6 100755 --- a/easy-builder +++ b/easy-builder @@ -14,10 +14,22 @@ install_dir="${project_source_dir}/install${SUBDIR:+/${SUBDIR}}" install_target='install/strip' build_type='Release' -if [ "$(uname -s)" = 'FreeBSD' ] -then - install_target='install' -fi +case "$(uname -s)" in + # Stripping is known to make non-PIE Linux netradiant binary unusable. + # Maybe that's related to the way we patch rpath? + # Building NetRadiant as non-PIE is required because of + # a mistake in the mimetype-library that prevents users + # to run the application from file managers on Linux. + # See: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11 + 'Linux') + install_target='install' + ;; + # Stripping is known to make FreeBSD binaries unusable. + # Maybe that's related to the way we patch rpath? + 'FreeBSD') + install_target='install' + ;; +esac _job_count=4