Mercurial > vim
comparison src/auto/configure @ 24626:7b48e331519d v8.2.2852
patch 8.2.2852: configure can add --as-needed a second time
Commit: https://github.com/vim/vim/commit/761ead497feff5fd259c9f6ca76d184bb8755373
Author: Natanael Copa <ncopa@alpinelinux.org>
Date: Sat May 15 14:25:37 2021 +0200
patch 8.2.2852: configure can add --as-needed a second time
Problem: Configure can add --as-needed a second time.
Solution: Only add --as-needed if not already there. (Natanael Copa,
closes #8189, closes #8181)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 May 2021 14:30:02 +0200 |
parents | 09bfa6e3859c |
children | ae30a87aafd3 |
comparison
equal
deleted
inserted
replaced
24625:4bb3aeaba950 | 24626:7b48e331519d |
---|---|
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 | 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
14936 $as_echo_n "checking linker --as-needed support... " >&6; } | 14936 $as_echo_n "checking linker --as-needed support... " >&6; } |
14937 LINK_AS_NEEDED= | 14937 LINK_AS_NEEDED= |
14938 # Check if linker supports --as-needed and --no-as-needed options | 14938 # Check if linker supports --as-needed and --no-as-needed options |
14939 if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then | 14939 if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then |
14940 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` | 14940 if ! echo "$LDFLAGS" | grep -q -- '-Wl,[^[:space:]]*--as-needed'; then |
14941 LDFLAGS="$LDFLAGS -Wl,--as-needed" | |
14942 fi | |
14941 LINK_AS_NEEDED=yes | 14943 LINK_AS_NEEDED=yes |
14942 fi | 14944 fi |
14943 if test "$LINK_AS_NEEDED" = yes; then | 14945 if test "$LINK_AS_NEEDED" = yes; then |
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14945 $as_echo "yes" >&6; } | 14947 $as_echo "yes" >&6; } |