From: Akira TAGOH Date: Mon, 21 Oct 2013 03:16:46 +0000 (+0900) Subject: Fix the dynamic loading issue on NetBSD X-Git-Tag: 2.11.1~36 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Ffontconfig.git;a=commitdiff_plain;h=5e029db4971e37437cfe6147d52d00136dfb8cb5 Fix the dynamic loading issue on NetBSD On NetBSD, it is not supported to load a library linked against libpthread into a program that wasn't (since the C library provides stubs for some pthread-functions, which might have already been called before libpthread is loaded, leading to problems). Patch from Matthias Drochner --- diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index d383ad5..e77541c 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -162,6 +162,11 @@ case ${host_os} in darwin*) ax_pthread_flags="-pthread $ax_pthread_flags" ;; + netbsd*) + # use libc stubs, don't link against libpthread, to allow + # dynamic loading + ax_pthread_flags="" + ;; esac # Clang doesn't consider unrecognized options an error unless we specify