Commit 073fcdba authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by GitHub
Browse files

Merge pull request #4187 from 23Skidoo/issue-3440

Fix #3440.
parents a1f6ae9a 72f8e98f
......@@ -69,12 +69,14 @@ done
If a C compiler is installed make sure it is on your PATH, or set $CC.'
# Find the correct linker/linker-wrapper.
#
# See https://github.com/haskell/cabal/pull/4187#issuecomment-269074153.
LINK="$(for link in collect2 ld; do
if [ $($CC -print-prog-name=$link) = $link ]
then
continue
else
$CC -print-prog-name=$link
$CC -print-prog-name=$link && break
fi
done)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment