Watcom.mif
author Ryan C. Gordon <icculus@icculus.org>
Mon, 12 Dec 2005 09:22:36 +0000
changeset 1200 8f418dce02b2
parent 1190 173c063d4f55
permissions -rw-r--r--
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.
     1 #=============================================================================
     2 #             This file contains the common includes for the
     3 #               Watcom makefiles to build SDL.DLL for OS/2
     4 #
     5 #
     6 #=============================================================================
     7 
     8 # Create debug build or not?
     9 #debug_build=defined
    10 
    11 # Special flags for building SDL
    12 SDLCFlags = -dBUILD_SDL -dCHECK_LEAKS
    13 
    14 #
    15 #==============================================================================
    16 #
    17 
    18 !ifdef debug_build
    19 debugflags = -d2 -dDEBUG_BUILD
    20 !else
    21 debugflags =
    22 !endif
    23 
    24 cflags = -zq $(debugflags) -bd -bm -bt=OS2 -5s -fpi -sg -otexan -wx -ei $(SDLCFlags) $(ExtraCFlags)
    25 
    26 .extensions:
    27 .extensions: .lib .dll .obj .c .asm
    28 
    29 .c.obj : .AUTODEPEND
    30     wcc386 $[* $(cflags)
    31 
    32 .asm.obj : .AUTODEPEND
    33     nasm -t -O2 -f obj -I$(%include) $[*.asm