1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Add CPPFLAGS to Makefiles, fix hardening-no-fortify-functions.

This commit is contained in:
sergiobenrocha2 2016-07-20 23:27:26 -03:00
parent 6e5738f8b0
commit 69738f2b84
3 changed files with 4 additions and 4 deletions

View File

@ -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 $@)

View File

@ -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 :=

View File

@ -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