diff --git a/rust-empty.mk b/rust-empty.mk index 47b91f10..d2d05d99 100644 --- a/rust-empty.mk +++ b/rust-empty.mk @@ -50,7 +50,7 @@ UNAME=$(shell uname) ifeq ($(UNAME),Darwin) # If the user wasn't explicit, see if SDL2 library exists ifeq ("$(strip $(SDL_MODE))","") - SDL_CHECK=$(shell pkg-config --exists sdl2) + SDL_CHECK=$(shell pkg-config --exists sdl2 && echo $$?) ifeq ($(SDL_CHECK),0) SDL_MODE = dylib else