Skip to content

Instantly share code, notes, and snippets.

@jonocole
Created May 26, 2009 09:49
Show Gist options
  • Save jonocole/117981 to your computer and use it in GitHub Desktop.
Save jonocole/117981 to your computer and use it in GitHub Desktop.
A useful script for running a binary on OSX where dylibs are in the binary's path
#!/bin/bash
BIN=${*:1}
cd `dirname $BIN`
DYLD=`pwd`
cd -
export DYLD_LIBRARY_PATH=$DYLD
$BIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment