diff mbox series

lzlib: respect CFLAGS from the recipe

Message ID 20260706074654.297733-1-oobitots@cisco.com
State New
Headers show
Series lzlib: respect CFLAGS from the recipe | expand

Commit Message

Oleksiy Obitotskyy July 6, 2026, 7:46 a.m. UTC
lzlib's configure script replaces CFLAGS from the environment with
its own defaults. As a result, the flags supplied by OpenEmbedded do
not make it into the generated Makefile.

Pass CFLAGS on the configure command line so the generated Makefile
uses the flags provided by the recipe.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
 meta/recipes-extended/lzip/lzlib_1.16.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-extended/lzip/lzlib_1.16.bb b/meta/recipes-extended/lzip/lzlib_1.16.bb
index e076581e05..26f612ca11 100644
--- a/meta/recipes-extended/lzip/lzlib_1.16.bb
+++ b/meta/recipes-extended/lzip/lzlib_1.16.bb
@@ -23,6 +23,7 @@  CONFIGUREOPTS = "\
     '--enable-shared' \
     '--disable-static' \
     'CC=${CC}' \
+    'CFLAGS=${CFLAGS}' \
     'CPPFLAGS=${CPPFLAGS}' \
     'CXXFLAGS=${CXXFLAGS}' \
     'LDFLAGS=${LDFLAGS}' \