summaryrefslogtreecommitdiff
path: root/pkgs/force-riscv/wno-error-range-loop-construct.patch
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-06-11 20:12:29 -0600
committerAlejandro Soto <alejandro@34project.org>2023-06-11 20:12:29 -0600
commit07bf05a7869c88c27912833c1db942f8fc849f4d (patch)
treeb32a11e146884bcee04ef2dd5702b45e89699424 /pkgs/force-riscv/wno-error-range-loop-construct.patch
parent905a306a705fc7bf9f0d03945bfe692c530dd05e (diff)
pkgs: add existing derivations written for other projects
Diffstat (limited to '')
-rw-r--r--pkgs/force-riscv/wno-error-range-loop-construct.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/force-riscv/wno-error-range-loop-construct.patch b/pkgs/force-riscv/wno-error-range-loop-construct.patch
new file mode 100644
index 0000000..034d522
--- /dev/null
+++ b/pkgs/force-riscv/wno-error-range-loop-construct.patch
@@ -0,0 +1,13 @@
+diff --git a/utils/make/Makefile.common b/utils/make/Makefile.common
+index d0c96d3..422f6eb 100644
+--- a/utils/make/Makefile.common
++++ b/utils/make/Makefile.common
+@@ -60,7 +60,7 @@ else
+ PYTHON_LIB_TYPE=
+ endif
+
+-CFLAGS = -Wall -std=c++11 -gdwarf-3 -m64 -Werror $(OPTIMIZATION) $(PICKY_FLAGS) $(VISIBILITY) -D $(ARCH_ENUM_HEADER)
++CFLAGS = -Wall -std=c++11 -gdwarf-3 -m64 -Werror $(OPTIMIZATION) $(PICKY_FLAGS) $(VISIBILITY) -D $(ARCH_ENUM_HEADER) -Wno-error=range-loop-construct
+ LFLAGS = -lpthread -static-libstdc++ -static-libgcc -L$(PYTHON_LIB) -lpython$(PYTHON_VER)$(PYTHON_LIB_TYPE) -lutil -ldl -rdynamic
+
+ ALL_OBJS := $(ALL_SRCS:%.cc=$(OBJ_DIR)/%.o)