mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix setting cflags/libs from sdl2-config
SDL_CFLAGS and SDL_LIBS assignment was "only if absent". However due to previously assigning them to "pkg-config sdl2" values, the values from sdl2-config were ignored.
This commit is contained in:
parent
da07a6dbd9
commit
e657dbd6b2
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -301,8 +301,8 @@ endif
|
||||||
# Use sdl2-config if all else fails
|
# Use sdl2-config if all else fails
|
||||||
ifeq ($(SDL_CFLAGS),)
|
ifeq ($(SDL_CFLAGS),)
|
||||||
ifneq ($(call bin_path, sdl2-config),)
|
ifneq ($(call bin_path, sdl2-config),)
|
||||||
SDL_CFLAGS ?= $(shell sdl2-config --cflags)
|
SDL_CFLAGS = $(shell sdl2-config --cflags)
|
||||||
SDL_LIBS ?= $(shell sdl2-config --libs)
|
SDL_LIBS = $(shell sdl2-config --libs)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue