From: Rodrigo Kumpera Date: Thu, 15 Nov 2012 19:35:10 +0000 (-0500) Subject: Disable dynamic loading for iOS simulator builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=831cce4b10387ac23d45e29032898b64c4f6e7b8;p=gc Disable dynamic loading for iOS simulator builds. --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index da15e905..ec53e3a9 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -312,6 +312,7 @@ # define mach_type_known # endif # ifdef DARWIN +# include "TargetConditionals.h" # if defined(__ppc__) || defined(__ppc64__) # define POWERPC # define mach_type_known @@ -320,7 +321,9 @@ # define mach_type_known # define DARWIN_DONT_PARSE_STACK # define OS_TYPE "DARWIN" -# define DYNAMIC_LOADING +# if TARGET_IPHONE_SIMULATOR == 0 +# define DYNAMIC_LOADING +# endif /* XXX: see get_end(3), get_etext() and get_end() should not be used. These aren't used when dyld support is enabled (it is by default) */ # define DATASTART ((ptr_t) get_etext())