From 28541fe8267c6407176cdb85f063d1eff20c00ca Mon Sep 17 00:00:00 2001 From: repojohnray Date: Tue, 27 Apr 2021 17:37:27 +0200 Subject: [PATCH] Set -I. at the beginning to include the right config.h This is done to avoid to include for instance valgrind/config.h as the main config.h --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 23571170c7..005ad6bd80 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ endif OBJ := LIBS := -DEF_FLAGS := +DEF_FLAGS := -I. ASFLAGS := DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"' @@ -118,7 +118,7 @@ ifneq ($(CXX_BUILD), 1) CFLAGS += -D_GNU_SOURCE endif -DEF_FLAGS += $(INCLUDE_DIRS) -I. -Ideps -Ideps/stb +DEF_FLAGS += $(INCLUDE_DIRS) -Ideps -Ideps/stb CFLAGS += $(DEF_FLAGS) CXXFLAGS += $(DEF_FLAGS) -D__STDC_CONSTANT_MACROS