Hmm. That at least finishes without error and looks like it is using a reasonable linker parameter, but it doesn't seem to take effect:
$ go test -c -ldflags="-extldflags '--Wl,-rpath,/usr/local/Cellar/boost/1.53.0/lib'"
$ $ otool -L *.test | grep boost
/usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
I will have to keep tinkering with it.
I can change the paths after the fact, on the test binary:
$ install_name_tool -change /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/boost/1.53.0/lib/libboost_thread-mt.dylib foo.test
$ install_name_tool -change /usr/local/lib/libboost_system-mt.dylib /usr/local/Cellar/boost/1.53.0/lib/libboost_system-mt.dylib foo.test
$ otool -L *.test | grep boost
/usr/local/Cellar/boost/1.53.0/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Cellar/boost/1.53.0/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
$ ./foo.test
PASS
But I must be missing something in my build command/flags to get boost to properly link to this other location.