configure.in
changeset 11951 28be2719184c
parent 11930 c808a74c019e
child 11956 f162f5d7798d
     1.1 --- a/configure.in	Mon Apr 23 21:50:03 2018 -0700
     1.2 +++ b/configure.in	Mon Apr 23 21:55:59 2018 -0700
     1.3 @@ -123,10 +123,17 @@
     1.4  #    fi
     1.5  #done
     1.6  SDL_CFLAGS="$BASE_CFLAGS"
     1.7 -SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
     1.8 -CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
     1.9 -CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    1.10 -LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
    1.11 +SDL_LIBS="-lSDL2"
    1.12 +if [ "$BASE_LDFLAGS" != "" ]; then
    1.13 +    SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
    1.14 +fi
    1.15 +if [ "$EXTRA_CFLAGS" != "" ]; then
    1.16 +    CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
    1.17 +    CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    1.18 +fi
    1.19 +if [ "$EXTRA_LDFLAGS" != "" ]; then
    1.20 +    LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
    1.21 +fi
    1.22  
    1.23  dnl set this to use on systems that use lib64 instead of lib
    1.24  base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`