apple-sdk setup hooks: NIX_CFLAGS_COMPILE may be undefined

This commit is contained in:
John Ericson
2019-11-08 13:28:59 -05:00
parent 6fb526b32c
commit f1481f2c90
2 changed files with 2 additions and 2 deletions
@@ -1,5 +1,5 @@
linkSystemCoreFoundationFramework() {
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks $NIX_CFLAGS_COMPILE"
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
# gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not
# in the opensource release
# if the package needs private headers, we assume they also want to link with system CF