From 0fc9c561d69c11f5432cce64ef22ee95ece9e8a6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Jun 2020 14:23:18 +0800 Subject: [PATCH] add python3 include path for compiler --- hplip.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hplip.spec b/hplip.spec index d38711e..a46712c 100644 --- a/hplip.spec +++ b/hplip.spec @@ -147,6 +147,9 @@ sed -i 's|^AM_INIT_AUTOMAKE|AM_INIT_AUTOMAKE([foreign])|g' configure.in autoreconf --verbose --force --install +export CFLAGS="%{optflags} $(python3-config --includes)" +export CXXFLAGS="%{optflags} $(python3-config --includes)" + %configure \ --enable-scan-build --enable-gui-build --enable-fax-build \ --disable-foomatic-rip-hplip-install --enable-pp-build \