mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 01:21:21 +00:00
python3: Fix uuid module not compiled for host Python
This adds $(STAGING_DIR_HOST)/include/e2fsprogs to HOST_CFLAGS and
HOST_CPPFLAGS so that configure can find uuid/uuid.h.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 44fb4927f1)
This commit is contained in:
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
|
||||
include ../python3-version.mk
|
||||
|
||||
PKG_NAME:=python3
|
||||
PKG_RELEASE:=8
|
||||
PKG_RELEASE:=9
|
||||
PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
|
||||
|
||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||
@@ -314,6 +314,13 @@ define Py3Package/python3/filespec
|
||||
-|$(PYTHON3_PKG_DIR)
|
||||
endef
|
||||
|
||||
# libuuid is provided by e2fsprogs and uuid/uuid.h is moved into
|
||||
# $(STAGING_DIR_HOST)/include/e2fsprogs
|
||||
HOST_CFLAGS += \
|
||||
-I$(STAGING_DIR_HOST)/include/e2fsprogs
|
||||
HOST_CPPFLAGS += \
|
||||
-I$(STAGING_DIR_HOST)/include/e2fsprogs
|
||||
|
||||
HOST_LDFLAGS += \
|
||||
-Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user