Skip to content

Instantly share code, notes, and snippets.

View ohdarling's full-sized avatar
🎯
Focusing

ohdarling88 ohdarling

🎯
Focusing
View GitHub Profile
#! /bin/bash -x
SET_BAUDRATE='-b 2000000'
if [ ! -d autoconf-2.71/root/bin ] ; then
wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz
tar -xf autoconf-2.71.tar.xz
pushd autoconf-2.71
./configure --prefix=`pwd`/root
make && make install
@ohdarling
ohdarling / fixlibpath.sh
Created December 6, 2012 15:58
Fix library load path of Math-O file
#!/bin/bash
# Fix library load path
# Author: @ohdarling88
# Thanks to http://stackoverflow.com/questions/4677044/how-to-use-dylib-in-mac-os-x-c#answer-11585225
BIN=$1
BINNAME=`basename $BIN`
DYLIBS=`otool -L $BIN | grep "/opt" | awk -F' ' '{ print $1 }'`
mkdir -p lib