diff options
| author | Max Howell | 2012-08-31 11:42:01 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-31 13:29:45 -0400 |
| commit | f6ded076df11cf4237ecab5dbbbe5a460d5715e3 (patch) | |
| tree | c5b3de7f19effd68895597f41494d36e869f902b /Library/ENV | |
| parent | ae17944e063fbdc3d11a0120b746bc55910bc4fb (diff) | |
| download | brew-f6ded076df11cf4237ecab5dbbbe5a460d5715e3.tar.bz2 | |
superenv fix for broken 10.8 apr-1-config
serf requires you to explicitly tell it where to find the supertool because otherwise it has a hardcoded /usr/bin/apr-1-config (:P), ctail however is sensible and searches the PATH so now it's as though we do nothing special in that formula. Nice.
Diffstat (limited to 'Library/ENV')
| -rwxr-xr-x | Library/ENV/4.3/apr-1-config | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/ENV/4.3/apr-1-config b/Library/ENV/4.3/apr-1-config new file mode 100755 index 000000000..40ad6478e --- /dev/null +++ b/Library/ENV/4.3/apr-1-config @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ "$HOMEBREW_CCCFG" == *a* ]]; then + case "$1" in + --cc) echo "cc";; + --cpp) echo "cpp";; + --includedir) echo "$HOMEBREW_SDKROOT/usr/include/apr-1";; + --includes) echo "-isystem$HOMEBREW_SDKROOT/usr/include/apr-1";; + --apr-libtool) echo "glibtool";; + *) + exec xcrun apr-1-config "$@";; + esac +else + exec /usr/bin/apr-1-config "$@" +fi |
