2015-10-27 01:12:45 +01:00
|
|
|
prependSearchPath() {
|
2016-03-11 21:10:10 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks ${NIX_CFLAGS_COMPILE}"
|
2015-10-27 01:12:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
linkWithRealCF() {
|
|
|
|
# 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
|
2015-11-22 00:55:19 +01:00
|
|
|
NIX_LDFLAGS+=" /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
2015-10-27 01:12:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
preConfigureHooks+=(prependSearchPath linkWithRealCF)
|