diff options
author | Ian Lynagh <igloo@earth.li> | 2009-12-04 14:36:14 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-12-04 14:36:14 +0000 |
commit | 3e18f8be62b06c846b52d79717f79d51e2060593 (patch) | |
tree | 23ec97dd15bb48f3dd78f09c76c4894ac86a88d3 /mk | |
parent | 5c2220aa9aac0fefcba5abbfa3059a6ef138655f (diff) | |
download | haskell-3e18f8be62b06c846b52d79717f79d51e2060593.tar.gz |
Link all dynamic libraries with the correct install_name on Mac OS/X.
This is a rerecord of
Stephen Blackheath <oversensitive.pastors.stephen@blacksapphire.com>**20090930222855
to avoid conflicts.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/fix_install_names.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/mk/fix_install_names.sh b/mk/fix_install_names.sh deleted file mode 100644 index f6278ce2d7..0000000000 --- a/mk/fix_install_names.sh +++ /dev/null @@ -1,32 +0,0 @@ -# Darwin / Mac OS X only -# sh fix_install_names.sh directory binary -# -# Changes 'binary' to assume that all libHS*_dyn.dylib libraries -# are to be found in 'directory'. - -prefix=$1 -file=$2 - -type=`file "$file"` - -if `test "${type/Mach-O}" == "$type"` -then - exit -fi - -if `test x${prefix%/} != x"" ` -then - prefix=${prefix%/}/ -fi - -for i in `otool -L $file \ - | grep 'libHS.*_dyn.dylib' \ - | sed 's/.\(.*libHS.*_dyn.dylib\).*/\1/'` -do - install_name_tool -change $i "$prefix`basename $i`" $file -done - -if `test "${file%.dylib}" != "${file}"` -then - install_name_tool -id "$prefix`basename $file`" $file -fi |