From: Alexandru Ardelean Date: Mon, 20 Feb 2017 09:49:29 +0000 (+0200) Subject: python,python3: fix underlinking issues with lrt (clock_gettime()) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c54e2b0fbe2e9a7dfb050b45ff79a0f72b8582f;p=feed%2Fpackages.git 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 --- diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index 1d37a51d80..77652bd1f6 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 9e10d18063..614dc2c880 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+= \