include libgcc_s in case not pulled in by ldd

libc can demand-load libgcc_s in some situations, it seems
This commit is contained in:
Joey Hess 2013-12-31 15:08:26 -04:00
parent e5cbe8eafe
commit 04860fe3e9

View file

@ -141,4 +141,4 @@ parseLdd = catMaybes . map (getlib . dropWhile isSpace) . lines
- XXX Debian specific. -}
glibcLibs :: IO [FilePath]
glibcLibs = lines <$> readProcess "sh"
["-c", "dpkg -L libc6 | egrep '\\.so|gconv'"]
["-c", "dpkg -L libc6 libgcc1 | egrep '\\.so|gconv'"]