From f094ac207bd689e9712a4e75d84e3363d3ffc83e Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Thu, 29 May 2025 21:59:48 +0200 Subject: [PATCH 1/2] trying remove -std=c++14 from CFLAGS_UNRAR --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 15c587f71..4d8123aa9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -214,7 +214,7 @@ endif ## because UNRAR ifeq ($(ENABLE_UNRAR),1) ifeq ($(USE_SYSTEM_UNRAR),0) -CFLAGS_UNRAR += -std=c++14 +#CFLAGS_UNRAR += -std=c++14 ifneq ($(CC),clang) CFLAGS_UNRAR += -Wno-class-memaccess CFLAGS_UNRAR += -Wno-misleading-indentation From daa41a0ab8c50b8be0b13272c3bcaf6ba2da8298 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Thu, 29 May 2025 22:05:03 +0200 Subject: [PATCH 2/2] add -std=c++14 for UNRAR only on MacOS --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 4d8123aa9..fe28aff62 100644 --- a/src/Makefile +++ b/src/Makefile @@ -214,7 +214,9 @@ endif ## because UNRAR ifeq ($(ENABLE_UNRAR),1) ifeq ($(USE_SYSTEM_UNRAR),0) -#CFLAGS_UNRAR += -std=c++14 +ifeq ($(UNAME),Darwin) +CFLAGS_UNRAR += -std=c++14 +endif ifneq ($(CC),clang) CFLAGS_UNRAR += -Wno-class-memaccess CFLAGS_UNRAR += -Wno-misleading-indentation