[cfe-dev] [patch] -fno-constant-cfstrings issue
devlists at shadowlab.org
Tue Jul 5 00:56:40 PDT 2011
I have a problem trying to compile unload able bundle with clang. According to CoreFoundation reference (1), when writing such bundle, you should the -fno-constant-cfstrings option to prevent issue with dandling CFStringRef pointer.
Actually, clang completely ignore this flag and always define the __CONSTANT_CFSTRINGS__ macro, used by the CoreFoundation header to conditionally generate constant strings.
I attached a patch to not define this macro when -fno-constant-cfstrings is passed to the compiler.
(1): The last section of this page http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/AccessingaBundlesContents/AccessingaBundlesContents.html
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 606 bytes
Desc: not available
More information about the cfe-dev