Some cc-wrapper changes to better support darwin and clang:

- Add a conditional flag for the c++ std lib
- Build binaries that get linked by our own dyld (someday)
- Automatically add framework directories in the setup hook
This commit is contained in:
Dan Peebles
2015-02-08 21:15:22 -05:00
parent c165f24208
commit 7bea6aafae
3 changed files with 29 additions and 7 deletions
@@ -12,6 +12,10 @@ addCVars () {
if [ -d $1/lib ]; then
export NIX_LDFLAGS+=" -L$1/lib"
fi
if test -d $1/Library/Frameworks; then
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -F$1/Library/Frameworks"
fi
}
envHooks+=(addCVars)