From 35a28545a8a53f1ebebfc4d786e74755c8f33749 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 29 Dec 2016 18:59:53 +0100 Subject: [PATCH] Don't pass --with-sdl-prefix for every module. Some non-SDL libraries won't like this arg. --- build-chocolate-doom | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-chocolate-doom b/build-chocolate-doom index b4b451b..1f8eb99 100644 --- a/build-chocolate-doom +++ b/build-chocolate-doom @@ -170,7 +170,7 @@ build_module() { echo Building module... cd "$BUILD_DIR/$module" - (./configure --with-sdl-prefix=$SDL_PREFIX --prefix=$INSTALL_DIR $args) || exit + (./configure --prefix=$INSTALL_DIR $args) || exit make || exit # Install the package @@ -453,14 +453,16 @@ if $force_build_sdl || ! have_header SDL_net.h; then # SDL_net not installed; we must build it fetch_and_build_module http://www.libsdl.org/projects/SDL_net/release/ \ - SDL_net 1.2.7 "$HOST_ARG" + SDL_net 1.2.7 \ + "--with-sdl-prefix=$SDL_PREFIX $HOST_ARG" fi if $force_build_sdl || ! have_header SDL_mixer.h; then # SDL_mixer not installed; we must build it # Disable dependencies on external libraries for sound file formats: - mixer_opts="--disable-music-mod --disable-music-mp3 \ + mixer_opts="--with-sdl-prefix=$SDL_PREFIX $HOST_ARG \ + --disable-music-mod --disable-music-mp3 \ --disable-music-flac-shared --disable-music-ogg-shared" # ...except ones we're building.