* explicitly link libobjc to prevent the symbol __objc_empty_cache from

resolving to CoreFoundation on macOS 10.14 (which will break running
    such programs on older macOS/(Mac) OS X versions)

git-svn-id: trunk@41243 -
This commit is contained in:
Jonas Maebe 2019-02-06 19:48:47 +00:00
parent 1c64f4c751
commit 3b87b10904

View File

@ -3,6 +3,9 @@ unit objc;
{$ifdef darwin}
{$define targethandled}
{$linklib objc}
{$if defined(iphonesim) or defined(cpuarm) or defined(cpux86_64) or defined(cpupowerpc64) or defined(cpuaarch64)}
{$i objcnf.inc}
{$endif}