From 8a2c96abc57043128050083da55d34e11e477c57 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 14 Feb 2012 23:34:30 +0400 Subject: [PATCH] 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). --- include/private/gcconfig.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 1a6436c6..d9c1d637 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1973,7 +1973,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 -- 2.40.0