From 2184fd0902c284cbdc9418d29893a4ffd02edae3 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 21 Dec 2017 21:03:41 -0800 Subject: [PATCH] libretro: Change CXXFLAGS to CFLAGS. This core does not use CXXFLAGS... --- libretro/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libretro/Makefile b/libretro/Makefile index bbbfe3d..9a99ecc 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -48,7 +48,7 @@ endif ifeq ($(platform), osx) ifndef ($(NOUNIVERSAL)) - CXXFLAGS += $(ARCHFLAGS) + CFLAGS += $(ARCHFLAGS) LFLAGS += $(ARCHFLAGS) endif endif @@ -88,10 +88,10 @@ else endif ifeq ($(platform),$(filter $(platform),ios9 ios-arm64)) CC += -miphoneos-version-min=8.0 -CXXFLAGS += -miphoneos-version-min=8.0 +CFLAGS += -miphoneos-version-min=8.0 else CC += -miphoneos-version-min=5.0 -CXXFLAGS += -miphoneos-version-min=5.0 +CFLAGS += -miphoneos-version-min=5.0 endif else ifneq (,$(findstring qnx,$(platform))) TARGET := $(TARGET_NAME)_libretro_qnx.so @@ -121,9 +121,9 @@ MKDIR := $(shell which mkdir) LDFLAGS += $(LIBM) ifeq ($(DEBUG), 1) - CXXFLAGS += -O0 -g + CFLAGS += -O0 -g else - CXXFLAGS += -O2 -DNDEBUG + CFLAGS += -O2 -DNDEBUG endif include Makefile.common @@ -131,7 +131,6 @@ include Makefile.common OBJECTS := $(patsubst %.c,$(CORE_DIR)/build/obj/%_libretro.c.o,$(SOURCES_C)) CFLAGS += -Wall -D__LIBRETRO__ $(fpic) $(INCFLAGS) -std=gnu11 -D_GNU_SOURCE -D_USE_MATH_DEFINES -CXXFLAGS += -Wall -D__LIBRETRO__ $(fpic) all: $(TARGET)