summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/OSXMkLibs.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/OSXMkLibs.hs b/Build/OSXMkLibs.hs
index a3448b563..6e0670d79 100644
--- a/Build/OSXMkLibs.hs
+++ b/Build/OSXMkLibs.hs
@@ -62,11 +62,12 @@ otool appbase libmap = do
files <- filterM doesFileExist =<< dirContentsRecursive appbase
process [] files libmap
where
- unprocessed s = not ("@executable_path" `isInfixOf` s)
+ want s = not ("@executable_path" `isInfixOf` s)
+ && not (".framework" `isInfixOf` s)
process c [] m = return (nub $ concat c, m)
process c (file:rest) m = do
_ <- boolSystem "chmod" [Param "755", File file]
- libs <- filter unprocessed . parseOtool
+ libs <- filter want . parseOtool
<$> readProcess "otool" ["-L", file]
m' <- install_name_tool file libs m
process (libs:c) rest m'