From: Holger Schemel Date: Thu, 26 Nov 2020 16:58:48 +0000 (+0100) Subject: added fix to Makefile to execute "sdl2-config" only once X-Git-Tag: 4.2.0.5~10 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=08070d4e9c59d68b73682bb586ba9002c17386a8 added fix to Makefile to execute "sdl2-config" only once --- diff --git a/src/Makefile b/src/Makefile index af907f8c..126f0733 100644 --- a/src/Makefile +++ b/src/Makefile @@ -84,9 +84,9 @@ endif # $(info Using SDL version $(SDL_VERSION) [TARGET == $(TARGET)]) ifeq ($(TARGET),sdl2) # compiling for SDL2 target -SYS_CFLAGS = -DTARGET_SDL2 $(shell sdl2-config --cflags) SDL_LIBS = -lSDL2_image -lSDL2_mixer -lSDL2_net -SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl2-config --libs) +SYS_CFLAGS := -DTARGET_SDL2 $(shell sdl2-config --cflags) +SYS_LDFLAGS := $(SDL_LIBS) $(shell sdl2-config --libs) endif