Hello,
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 Documentation Archive
-- Jean-Daniel
constcfstrings.patch (606 Bytes)