From 529abd81055c855503b9b0ce927608e2dc8c69ae Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 12 Dec 2005 09:22:36 +0000 Subject: [PATCH] Date: Sun, 11 Dec 2005 20:37:04 +0100 From: Olivier Boudeville To: "A list for developers using the SDL library. \(includes SDL-announce\)" Subject: [SDL] NetBSD build patch Hi everybody, apparently the SDL-1.2.9 source archive could not compile "as is" on NetBSD 2.0_STABLE due to a pthread detection issue in the configure script. I attached a small patch that can be applied to configure.in so that SDL can be directly (i.e. without the NetBSD package manager) configured and built successfully on NetBSD (at least on the one I tried !). Hope this helps, Olivier. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401203 --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index b22ba212d..3b03ee68d 100644 --- a/configure.in +++ b/configure.in @@ -1287,8 +1287,8 @@ CheckPTHREAD() pthread_lib="-pthread" ;; *-*-netbsd*) - pthread_cflags="-I/usr/pkg/include -D_REENTRANT" - pthread_lib="-L/usr/pkg/lib -lpthread -lsem" + pthread_cflags="-I/usr/include -D_REENTRANT -D_THREAD_SAFE" + pthread_lib="-L/usr/lib -lpthread" ;; *-*-openbsd*) pthread_cflags="-D_REENTRANT"