]> granicus.if.org Git - gc/commitdiff
Prevent NO_DYLD_BIND_FULLY_IMAGE redefinition (Darwin)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 14 Feb 2012 19:34:30 +0000 (23:34 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 15 Feb 2012 07:58:33 +0000 (11:58 +0400)
* 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

index 0b8bc74b66708f25e27a555f0f6ed0428b416e15..310afdff041bdbf2ec3d8c1f91f5ed010a57c700 100644 (file)
       /* 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