@@ -8,7 +8,6 @@ appleDerivation {
88
99 patches = [ ./add-cf-initialize.patch ./add-cfmachport.patch ./cf-bridging.patch ];
1010
11− # CFAttributedString.h is in the SDK only, not on opensource.apple.com or github
1211 __propagatedImpureHostDeps = [
1312 "/System/Library/Frameworks/CoreFoundation.framework"
1413 "/usr/lib/libc++.1.dylib"
@@ -30,6 +29,10 @@ appleDerivation {
3029 --replace 'chown -RH -f root:wheel $(DSTBASE)/CoreFoundation.framework' "" \
3130 --replace 'chmod -RH' 'chmod -R'
3231
32+ # with this file present, CoreFoundation gets a _main symbol defined, which can
33+ # interfere with linking other programs
34+ rm plconvert.c
35+
3336 replacement=''$'#define __PTK_FRAMEWORK_COREFOUNDATION_KEY5 55\n#define _pthread_getspecific_direct(key) pthread_getspecific((key))\n#define _pthread_setspecific_direct(key, val) pthread_setspecific((key), (val))'
3437
3538 substituteInPlace CFPlatform.c --replace "#include <pthread/tsd_private.h>" "$replacement"