summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-01 13:59:57 -0700
committerRosen Penev <rosenp@gmail.com>2020-12-07 15:50:44 -0800
commit4f4f708542318294e328afe52d30704137ef96c1 (patch)
tree7ccb29393268386055b700ffbb4c6499eaae715c
parent0d2bc5ae53916b41fa9a566dfda32fabb7f8a0d4 (diff)
python3: fix host compilation with clang
Matched rpath parameter with Makefile. Signed-off-by: Rosen Penev <rosenp@gmail.com> (cherry-picked from commit b40c40151c2ac3dd11d908a0548ac97e6b5c8455)
-rw-r--r--lang/python/python-host.mk2
-rw-r--r--lang/python/python/Makefile2
-rw-r--r--lang/python/python3-host.mk2
-rw-r--r--lang/python/python3/Makefile2
4 files changed, 4 insertions, 4 deletions
diff --git a/lang/python/python-host.mk b/lang/python/python-host.mk
index eb58c557e..105dcafd3 100644
--- a/lang/python/python-host.mk
+++ b/lang/python/python-host.mk
@@ -50,7 +50,7 @@ define host_python_settings
LDSHARED="$(HOSTCC) -shared" \
CFLAGS="$(HOST_CFLAGS)" \
CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON_INC_DIR)" \
- LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON_VERSION) -Wl$(comma)-rpath=$(STAGING_DIR_HOSTPKG)/lib" \
+ LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON_VERSION) -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib" \
_PYTHON_HOST_PLATFORM=linux2
endef
diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile
index a192a65be..7b2c32c29 100644
--- a/lang/python/python/Makefile
+++ b/lang/python/python/Makefile
@@ -12,7 +12,7 @@ include ../python-version.mk
PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk
index 71ae09362..e20c95a21 100644
--- a/lang/python/python3-host.mk
+++ b/lang/python/python3-host.mk
@@ -50,7 +50,7 @@ define host_python3_settings
LDSHARED="$(HOSTCC) -shared" \
CFLAGS="$(HOST_CFLAGS)" \
CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON3_INC_DIR)" \
- LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON3_VERSION) -Wl$(comma)-rpath=$(STAGING_DIR_HOSTPKG)/lib" \
+ LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON3_VERSION) -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib" \
_PYTHON_HOST_PLATFORM=linux2
endef
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index c2d86f5f1..03e6328e9 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
PKG_NAME:=python3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz