Building libintl targeting the 10.6 SDK with a newer SDK (10.7 or 10.8)
leads to the following abort in Snow Leopard:
libSystem.B.dylib                   0x00007fff872940b6 __kill + 10
libSystem.B.dylib                   0x00007fff873349f6 abort + 83
libintl.8.dylib                           0x000000010072148d
_nl_load_domain + 3802
libintl.8.dylib                           0x000000010072050e
_nl_find_domain + 460
libintl.8.dylib                           0x00000001007230ed
libintl_dcigettext + 1132

In 10.7 and 10.8 pthread.h defines
unconditionally PTHREAD_RECURSIVE_MUTEX_INITIALIZER, which is undefined in
10.6. So building with -mmacosx-version-min=10.6 using a newer SDK causes
the above error when used in Snow Leopard.

References:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51906
https://trac.adium.im/ticket/15996#comment:16

-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es

Attachment: 0001-intl-fix-build-targetting-10.6-with-the-10.7-or-10.8.patch
Description: Binary data

Reply via email to