From 7c896e06083da6b532c6753bd1ea1f19f9614747 Mon Sep 17 00:00:00 2001 From: josh Date: Tue, 17 Jun 2014 21:00:24 +0900 Subject: [PATCH] fix makefile pkg-config sdl2 detection --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0688acca..c5ae38d6 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,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