mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
fall back to sdl-config if SDL_CFLAGS are empty
works around buggy Solaris installations where pkg-config is installed but can't find the SDL config file
This commit is contained in:
parent
ec846d23b2
commit
161dc2ddf5
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -187,7 +187,9 @@ ifeq ($(shell which pkg-config > /dev/null; echo $$?),0)
|
|||
# FIXME: introduce CLIENT_CFLAGS
|
||||
SDL_CFLAGS=$(shell pkg-config --cflags sdl|sed 's/-Dmain=SDL_main//')
|
||||
SDL_LIBS=$(shell pkg-config --libs sdl)
|
||||
else
|
||||
endif
|
||||
# Use sdl-config if all else fails
|
||||
ifeq ($(SDL_CFLAGS),)
|
||||
ifeq ($(shell which sdl-config > /dev/null; echo $$?),0)
|
||||
SDL_CFLAGS=$(shell sdl-config --cflags)
|
||||
SDL_LIBS=$(shell sdl-config --libs)
|
||||
|
|
Loading…
Reference in a new issue