try to fix collect2 output parser

This commit is contained in:
Joey Hess 2013-12-06 18:06:39 -04:00
parent 0a66293600
commit db26e3c4de

View file

@ -81,8 +81,9 @@ parseGccLink = do
{- Find where collect2 calls ld. -}
parseCollect2 :: Parser CmdParams
parseCollect2 = do
string "GNU ld"
restOfLine
try $ do
string "GNU ld"
restOfLine
string "collect2 version"
restOfLine
path <- manyTill anyChar (try $ string ldcmd)