From 52196839c8effc5a2ecbc212efbffa97829a3a37 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 19 May 2023 23:34:31 +0200 Subject: [PATCH] fix unrar deps errors when compiling with cygwin/msys --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 76b79b284..5025225ec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -217,6 +217,8 @@ ifneq ($(CC),clang) CFLAGS_UNRAR += -Wno-class-memaccess CFLAGS_UNRAR += -Wno-misleading-indentation CFLAGS_UNRAR += -Wno-format-overflow +else +CFLAGS_UNRAR += -std=c++11 endif CFLAGS_UNRAR += -Wno-missing-braces CFLAGS_UNRAR += -Wno-unused-variable @@ -641,7 +643,7 @@ endif ifeq ($(ENABLE_UNRAR),1) ifeq ($(USE_SYSTEM_UNRAR),0) obj/%.UNRAR.NATIVE.o: $(DEPS_UNRAR_PATH)/%.cpp - $(CXX) -std=c++11 -c $(CXXFLAGS) $(CFLAGS_NATIVE) $(CFLAGS_UNRAR) $< -o $@ -fpic + $(CXX) -c $(CXXFLAGS) $(CFLAGS_NATIVE) $(CFLAGS_UNRAR) $< -o $@ -fpic endif endif