Skip to content

Commit

Permalink
sdl.m4: don't play with the PATH if cross-compiling
Browse files Browse the repository at this point in the history
taken from from SDL2
  • Loading branch information
sezero committed Mar 24, 2018
1 parent 34951f7 commit f7aab57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdl.m4
Expand Up @@ -35,7 +35,7 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run
fi
as_save_PATH="$PATH"
if test "x$prefix" != xNONE; then
if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
fi
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
Expand Down

0 comments on commit f7aab57

Please sign in to comment.