From 1c54e2b0fbe2e9a7dfb050b45ff79a0f72b8582f Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 20 Feb 2017 11:49:29 +0200 Subject: [PATCH] python,python3: fix underlinking issues with lrt (clock_gettime()) Seems it's called underlinking that's happening only on Ubuntu 12.04 with libressl (that comes from LEDE's tools folder). Link here: https://ubuntuforums.org/showthread.php?t=1870586 I'm still reading about this a bit. Since I don't really get it. But applying that fix (as in the link) seems to fix compiling on Ubuntu 12.04, and tried also on 16.04 (to make sure). Signed-off-by: Alexandru Ardelean --- lang/python/python/Makefile | 1 + lang/python/python3/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index 1d37a51d8..77652bd1f 100644 --- a/lang/python/python/Makefile +++ b/lang/python/python/Makefile @@ -276,6 +276,7 @@ define Package/python-pip-conf/install endef HOST_LDFLAGS += \ + -Wl,--no-as-needed -lrt \ $$$$(pkg-config --static --libs libcrypto libssl) HOST_CONFIGURE_ARGS+= \ diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 9e10d1806..614dc2c88 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -251,6 +251,7 @@ define Py3Package/python3/filespec endef HOST_LDFLAGS += \ + -Wl,--no-as-needed -lrt \ $$$$(pkg-config --static --libs libcrypto libssl) HOST_CONFIGURE_ARGS+= \