dtc/0001-pylibfdt-Makefile.pylibfdt-Use-CFLAGS-when-building-.patch
Miroslav Rezanina ef4e419130 * Fri Jun 28 2024 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.0-10
- Fix missing dynamic tags for aarch64 python3 pylibfdt
- Resolves: RHEL-33493
  (Annocheck FAIL: bind-now (dtc))
2024-06-28 03:31:26 -04:00

34 lines
1.1 KiB
Diff

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