From f09353eacaeeecd8cd2837356f7c1394629e401f Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Fri, 27 Jun 2008 12:03:05 +0200 Subject: [PATCH] Don't use X11 on Mac OS --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e01d81f..d2a0aac 100755 --- a/build.sh +++ b/build.sh @@ -196,7 +196,11 @@ build_generic() cd $ROOT/3rdparty/sdl || failure ./autogen.sh >> $LOGFILE 2>&1 || failure cd $ROOT/build/sdl || failure - $ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes >> $LOGFILE 2>&1 || failure + if [ "$1" == "$TARGET_MAC" ]; then + $ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --enable-video-x11=no >> $LOGFILE 2>&1 || failure + else + $ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes >> $LOGFILE 2>&1 || failure + fi make >> $LOGFILE 2>&1 || failure make install >> $LOGFILE 2>&1 || failure echo "Successfully built and installed SDL!" | tee -a $LOGFILE -- GitLab