From c340ae26370b4b3eca5433fd2462836abce19533 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Jan 2014 16:44:04 -0400 Subject: fix warning --- Build/OSXMkLibs.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/OSXMkLibs.hs b/Build/OSXMkLibs.hs index e3802e58c..f6485aa01 100644 --- a/Build/OSXMkLibs.hs +++ b/Build/OSXMkLibs.hs @@ -109,7 +109,7 @@ expand_rpath libs replacement_libs cmd let m = if (null s) then M.fromList replacement_libs else M.fromList $ mapMaybe parse $ lines s - return $ map (replace m) libs + return $ map (replacem m) libs | otherwise = return libs where probe c = "DYLD_PRINT_RPATHS=1 " ++ c ++ " --getting-rpath-dummy-option 2>&1 | grep RPATH" @@ -117,7 +117,7 @@ expand_rpath libs replacement_libs cmd ("RPATH":"successful":"expansion":"of":old:"to:":new:[]) -> Just (old, new) _ -> Nothing - replace m l = fromMaybe l $ M.lookup l m + replacem m l = fromMaybe l $ M.lookup l m parseOtool :: String -> [FilePath] parseOtool = catMaybes . map parse . lines -- cgit v1.2.3