From 08070d4e9c59d68b73682bb586ba9002c17386a8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 26 Nov 2020 17:58:48 +0100 Subject: [PATCH] added fix to Makefile to execute "sdl2-config" only once --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1