configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 41ee9dcc4e12c32d49294dd4b19a97cb24f8253f Author: Jan-Marek Glogowski <glo...@fbihome.de> AuthorDate: Sun Jan 2 04:59:26 2022 +0100 Commit: Jan-Marek Glogowski <glo...@fbihome.de> CommitDate: Sun Jan 2 08:38:11 2022 +0100 Use correct ld syntax for old clang versions ... and forward the same ld setting to the cross-toolset. Change-Id: I23a40fe3fecd105cdd67dc50bb325dc659c1440a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127855 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glo...@fbihome.de> diff --git a/configure.ac b/configure.ac index 2467b55957a9..b62453934946 100644 --- a/configure.ac +++ b/configure.ac @@ -4501,7 +4501,11 @@ check_use_ld() use_ld_path=${1#*:} if test "$use_ld_path" != "$1"; then if test "$COM_IS_CLANG" = TRUE; then - use_ld="${use_ld} --ld-path=${use_ld_path}" + if test "$CLANGVER" -ge 120000; then + use_ld="${use_ld} --ld-path=${use_ld_path}" + else + use_ld="-fuse-ld=${use_ld_path}" + fi else # I tried to use gcc's '-B<path>' and a directory + symlink setup in # $BUILDDIR, but libtool always filtered-out that option, so gcc wouldn't @@ -5523,6 +5527,7 @@ if test "$cross_compiling" = "yes"; then test "$with_galleries" = "no" -o -z "$WITH_GALLERY_BUILD" && sub_conf_opts="$sub_conf_opts --with-galleries=no --disable-database-connectivity" test -n "$with_help" -a "$with_help" != "no" && sub_conf_opts="$sub_conf_opts --with-help=$with_help" test "$enable_extensions" = yes || sub_conf_opts="$sub_conf_opts --disable-extensions" + test "${enable_ld+set}" = set -a "$build_cpu" = "$host_cpu" && sub_conf_opts="$sub_conf_opts --enable-ld=${enable_ld}" test "${enable_pch+set}" = set && sub_conf_opts="$sub_conf_opts --enable-pch=${enable_pch}" test "$enable_wasm_strip" = "yes" && sub_conf_opts="$sub_conf_opts --enable-wasm-strip" test "${with_system_lockfile+set}" = set && sub_conf_opts="$sub_conf_opts --with-system-lockfile=${with_system_lockfile}"