summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-09 12:15:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-09 12:16:02 -0400
commit8b50290947148e9ae15bc46804bf1cd6614bd4d0 (patch)
tree7481c1b4ecb56d22a52c8bc3e5a372c31fdb0751 /Build
parentac66b7f6542b37ca1a7eab817a430c3db4235a1a (diff)
fix executable permissions
sh at least does not default to having a write bit
Diffstat (limited to 'Build')
-rw-r--r--Build/OSXMkLibs.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Build/OSXMkLibs.hs b/Build/OSXMkLibs.hs
index a0df54a1b..20bf0bf69 100644
--- a/Build/OSXMkLibs.hs
+++ b/Build/OSXMkLibs.hs
@@ -62,6 +62,7 @@ otool appbase libmap = do
unprocessed s = not ("@executable_path" `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
<$> readProcess "otool" ["-L", file]
m' <- install_name_tool file libs m