package/zbar: fix python build

Fix the following build failure with python raised since its activation
by commit cfc80eeeb4f3cb8e59b56bedd5bd49761764671f:

In file included from /home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/Python.h:63,
                 from python/zbarmodule.h:24,
                 from python/zbarmodule.c:24:
/home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  741 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
      |  ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/43a8c8d5403c329f2d754ed09807a53772174397

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021.11.x
Fabrice Fontaine 2021-09-30 08:18:49 +02:00 committed by Yann E. MORIN
parent 556a0a1104
commit eda35c429b
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3
ZBAR_CONF_ENV += PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
else
ZBAR_CONF_OPTS += --with-python=no
endif