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 <ardeleanalex@gmail.com>
This commit is contained in:
Alexandru Ardelean 2017-02-20 11:49:29 +02:00
parent a899a96f9e
commit 1c54e2b0fb
2 changed files with 2 additions and 0 deletions

View 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+= \

View 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+= \