python,python3: fix underlinking issues with lrt (clock_gettime())
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 20 Feb 2017 09:49:29 +0000 (11:49 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 3 Jul 2017 06:28:41 +0000 (09:28 +0300)
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 <ardeleanalex@gmail.com>
lang/python/python/Makefile
lang/python/python3/Makefile

index 1d37a51d80c0dbf998cb83a07e95369df53dcca3..77652bd1f658acab001bec4702cdff5294a350bd 100644 (file)
@@ -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+= \
index 9e10d18063ae3411bcdbc5ffa165eee8b3704e59..614dc2c88073172bf3f93ff281f37f7849fc33b4 100644 (file)
@@ -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+= \