# HG changeset patch # User Ryan C. Gordon # Date 1134379356 0 # Node ID 8f418dce02b2c81d3d8b0d4b444ea5930a2b3623 # Parent 2d6dc7de11454b66d8b1e46978c1076070aa9697 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. diff -r 2d6dc7de1145 -r 8f418dce02b2 configure.in --- a/configure.in Mon Dec 12 09:13:12 2005 +0000 +++ b/configure.in Mon Dec 12 09:22:36 2005 +0000 @@ -1287,8 +1287,8 @@ 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"