From: Ivan Maidanski Date: Tue, 14 Feb 2012 19:34:30 +0000 (+0400) Subject: Prevent NO_DYLD_BIND_FULLY_IMAGE redefinition (Darwin) X-Git-Tag: gc7_2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc59c8b4498804b7c59b9181d3deef07f10a7b87;p=gc Prevent NO_DYLD_BIND_FULLY_IMAGE redefinition (Darwin) * include/private/gcconfig.h (NO_DYLD_BIND_FULLY_IMAGE): Do not define if already defined (e.g., by compiler -D option). --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 0b8bc74b..310afdff 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1965,7 +1965,9 @@ /* FIXME: There seems to be some issues with trylock hanging on */ /* darwin. This should be looked into some more. */ # define NO_PTHREAD_TRYLOCK -# define NO_DYLD_BIND_FULLY_IMAGE +# ifndef NO_DYLD_BIND_FULLY_IMAGE +# define NO_DYLD_BIND_FULLY_IMAGE +# endif # endif # ifdef OPENBSD # define ALIGNMENT 4