Unverified Commit 72f8e98f authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Fix #3440.

Fix provided by @mvkorpel.
parent a1f6ae9a
......@@ -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