view strip_fPIC.sh @ 1144:509295d5a023

Date: Sun, 11 Sep 2005 14:41:07 +0300 (EEST) From: =?ISO-8859-1?Q?Martin_Storsj=F6?= <martin@martin.st> To: sdl@libsdl.org Subject: [SDL] [PATCH] Switching between fullscreen/windowed on OS X Hi, When switching from fullscreen to windowed mode for opengl applications, the current version of SDL sets an harmless error, regarding usage of a NULL semaphore. This is due to code which tries to shut down a blitting thread, which is only started for double buffered 2d video modes, not for opengl. The attached patch fixes this. // Martin
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 27 Sep 2005 08:36:28 +0000
parents 48c34d68918e
children
line wrap: on
line source

#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
    case "$1" in
        -?PIC)
            # Ignore -fPIC and -DPIC options
            ;;
        *)
            command="$command $1"
            ;;
    esac
    shift
done
echo $command
exec $command