Date: Sun, 11 Dec 2005 20:37:04 +0100
authorRyan C. Gordon <icculus@icculus.org>
Mon, 12 Dec 2005 09:22:36 +0000
changeset 12008f418dce02b2
parent 1199 2d6dc7de1145
child 1201 718d00094f82
Date: Sun, 11 Dec 2005 20:37:04 +0100
From: Olivier Boudeville <olivier.boudeville@online.fr>
To: "A list for developers using the SDL library. \(includes SDL-announce\)" <sdl@libsdl.org>
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.
configure.in
     1.1 --- a/configure.in	Mon Dec 12 09:13:12 2005 +0000
     1.2 +++ b/configure.in	Mon Dec 12 09:22:36 2005 +0000
     1.3 @@ -1287,8 +1287,8 @@
     1.4              pthread_lib="-pthread"
     1.5              ;;
     1.6          *-*-netbsd*)
     1.7 -            pthread_cflags="-I/usr/pkg/include -D_REENTRANT"
     1.8 -            pthread_lib="-L/usr/pkg/lib -lpthread -lsem"
     1.9 +            pthread_cflags="-I/usr/include -D_REENTRANT -D_THREAD_SAFE"
    1.10 +            pthread_lib="-L/usr/lib -lpthread"
    1.11              ;;
    1.12          *-*-openbsd*)
    1.13              pthread_cflags="-D_REENTRANT"