Browse Source

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>
lilik-openwrt-22.03
Alexandru Ardelean 8 years ago
parent
commit
1c54e2b0fb
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      lang/python/python/Makefile
  2. +1
    -0
      lang/python/python3/Makefile

+ 1
- 0
lang/python/python/Makefile View File

@ -276,6 +276,7 @@ define Package/python-pip-conf/install
endef endef
HOST_LDFLAGS += \ HOST_LDFLAGS += \
-Wl,--no-as-needed -lrt \
$$$$(pkg-config --static --libs libcrypto libssl) $$$$(pkg-config --static --libs libcrypto libssl)
HOST_CONFIGURE_ARGS+= \ HOST_CONFIGURE_ARGS+= \


+ 1
- 0
lang/python/python3/Makefile View File

@ -251,6 +251,7 @@ define Py3Package/python3/filespec
endef endef
HOST_LDFLAGS += \ HOST_LDFLAGS += \
-Wl,--no-as-needed -lrt \
$$$$(pkg-config --static --libs libcrypto libssl) $$$$(pkg-config --static --libs libcrypto libssl)
HOST_CONFIGURE_ARGS+= \ HOST_CONFIGURE_ARGS+= \


Loading…
Cancel
Save