Skip to content

Instantly share code, notes, and snippets.

View iyahimovitz's full-sized avatar

Itay Yahimovitz iyahimovitz

View GitHub Profile
@iyahimovitz
iyahimovitz / repath_dylib.sh
Created September 24, 2015 12:12 — forked from rca/repath_dylib.sh
Repath the references in an OS X .dylib file for packaging within an application.
#!/bin/bash
# Repathing .dylib's references for packaging within an application
# Author: Roberto Aguilar <roberto.c.aguilar@gmail.com>
#
# With help from Nick Jensen's blog at:
# http://goto11.net/how-to-bundle-a-c-library-with-a-cocoa-application/
#
# All references within the dylib except ones to files in /usr/lib are
# converted over to reference the given root.