Skip to content

Instantly share code, notes, and snippets.

@ccaviness
Created November 5, 2015 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ccaviness/65a1ecd039613687253e to your computer and use it in GitHub Desktop.
Save ccaviness/65a1ecd039613687253e to your computer and use it in GitHub Desktop.
H
g/-Wl,-search_paths_first/d
g/ -lSystemStubs -arch_only [^"]*/s///
g/-current_version $(VERSION)/s//-current_version $(PYTHON_CURRENT_VERSION)/
g/-O3/s//-Os/g
/^OTHER_LIBTOOL_OPT$/i
EXTRA_CFLAGS
LIBTOOL
.
/# Calculate the right deployment target for this build\./i
function vers2str() {
printf '%02d%02d' `echo $1 | sed 's/\./ /'`
}
function cmpvers() {
test `vers2str $1` "$2" `vers2str $3`
}
.
/LIBTOOL_CRUFT=""/i
LIBTOOL='$(CC) -dynamiclib -all_load $(CFLAGS)'
.
/# Use -undefined dynamic_lookup whenever possible (10\.3 and later)\./a
.
/LIBFFI_INCLUDEDIR="`/s,".*","/usr/include/ffi",
/^# check for endianness/i
# Enable dtrace
EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_DTRACE"
.
w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment