You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
From c2f48c8694e77d619b1497daa8e6fd2bd3a78c9b Mon Sep 17 00:00:00 2001
|
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
Date: Fri, 28 Jun 2024 02:51:00 -0400
|
|
Subject: [PATCH] pylibfdt/Makefile.pylibfdt: Use CFLAGS when building module
|
|
|
|
Building python module do not use CLFAGS properly and so produced
|
|
files are missing some flags.
|
|
|
|
Adding explicit setting of CFLAGS environment variable to ensure
|
|
all flags are used. We just need to disable Werror flag that is causing
|
|
build to fiail.
|
|
|
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
---
|
|
pylibfdt/Makefile.pylibfdt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt
|
|
index 82f565e..992ef6a 100644
|
|
--- a/pylibfdt/Makefile.pylibfdt
|
|
+++ b/pylibfdt/Makefile.pylibfdt
|
|
@@ -17,7 +17,7 @@ endif
|
|
|
|
$(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP)
|
|
@$(VECHO) PYMOD $@
|
|
- $(PYTHON) $(SETUP) $(SETUPFLAGS) build_ext --build-lib=$(PYLIBFDT_dir)
|
|
+ CFLAGS="$(CFLAGS) -Wno-error" $(PYTHON) $(SETUP) $(SETUPFLAGS) build_ext
|
|
|
|
install_pylibfdt: $(PYMODULE)
|
|
@$(VECHO) INSTALL-PYLIB
|
|
--
|
|
2.39.3
|
|
|