From 831cce4b10387ac23d45e29032898b64c4f6e7b8 Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Thu, 15 Nov 2012 14:35:10 -0500 Subject: [PATCH] Disable dynamic loading for iOS simulator builds. --- include/private/gcconfig.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) -- 2.40.0