From 69738f2b84095cc2321a1d960fd498075c0b22d0 Mon Sep 17 00:00:00 2001 From: sergiobenrocha2 Date: Wed, 20 Jul 2016 23:27:26 -0300 Subject: [PATCH] Add CPPFLAGS to Makefiles, fix hardening-no-fortify-functions. --- Makefile | 4 ++-- audio/audio_filters/Makefile | 2 +- gfx/video_filters/Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7970c6b7cf..003deea2d7 100644 --- a/Makefile +++ b/Makefile @@ -136,12 +136,12 @@ retroarch: $(RARCH_OBJ) $(OBJDIR)/%.o: %.c config.h config.mk @mkdir -p $(dir $@) @$(if $(Q), $(shell echo echo CC $<),) - $(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $< + $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $< $(OBJDIR)/%.o: %.cpp config.h config.mk @mkdir -p $(dir $@) @$(if $(Q), $(shell echo echo CXX $<),) - $(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $< + $(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $< $(OBJDIR)/%.o: %.m @mkdir -p $(dir $@) diff --git a/audio/audio_filters/Makefile b/audio/audio_filters/Makefile index 3d3be558fc..3efbcc5344 100644 --- a/audio/audio_filters/Makefile +++ b/audio/audio_filters/Makefile @@ -57,7 +57,7 @@ endif CC := $(compiler) -Wall CXX := $(subst CC,++,$(compiler)) -std=gnu++0x -Wall -flags := $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include +flags := $(CPPFLAGS) $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include asflags := $(ASFLAGS) -fPIC $(extra_flags) objects := diff --git a/gfx/video_filters/Makefile b/gfx/video_filters/Makefile index 6989f10494..cfcf75911b 100644 --- a/gfx/video_filters/Makefile +++ b/gfx/video_filters/Makefile @@ -57,7 +57,7 @@ endif CC := $(compiler) CXX := $(subst CC,++,$(compiler)) -flags := $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include +flags := $(CPPFLAGS) $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include asflags := $(ASFLAGS) -fPIC $(extra_flags) objects := flags += -std=c99