-
-
Save natewalck/fb4910fdaa752993a8cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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