From a2a0a71e2be9350f28acae469b30f0ce04a4dc36 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 9 Dec 2012 13:38:08 -0400 Subject: [PATCH] install_name_tool fix --- Build/OSXMkLibs.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build/OSXMkLibs.hs b/Build/OSXMkLibs.hs index 18c0e7c8dc..b6e679d730 100644 --- a/Build/OSXMkLibs.hs +++ b/Build/OSXMkLibs.hs @@ -82,12 +82,13 @@ parseOtool = catMaybes . map parse . lines {- Adjusts binaries to use libraries bundled with it, rather than the - system libraries. -} install_name_tool :: FilePath -> [FilePath] -> LibMap -> IO LibMap +install_name_tool _ [] libmap = return libmap install_name_tool binary libs libmap = do let (libnames, libmap') = getLibNames libs libmap let params = concatMap change $ zip libs libnames ok <- boolSystem "install_name_tool" $ params ++ [File binary] unless ok $ - hPutStrLn stderr $ "install_name_tool failed for " ++ binary + error $ "install_name_tool failed for " ++ binary return libmap' where change (lib, libname) =