summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-12 21:34:59 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-12 21:34:59 -0400
commitbfb9003e86fa83db1dc8d7200415a2203c3e7ce9 (patch)
tree2179b7cafe6ecfc868d8b0b4c5df32a969d83314 /Build
parentbde7c01d92079e3465def2d8c036fbe82dd7bcb4 (diff)
try skipping OSX frameworks
Diffstat (limited to 'Build')
-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'