From ea62d1217caa286e22f1db1e9e53dc9b662ac1d6 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 14 Mar 2018 16:18:27 +0200 Subject: [PATCH] python,python3: limit underlinking behavior to linux platforms This change was introduced in commit 1c54e2b0fbe2e9a7d to address build issues on Ubuntu 12.04. However it was reported to cause issues on Mac OS X. Report: https://github.com/openwrt/packages/issues/5310 It was also reported that removing this on MacOS X fixes the issue. Signed-off-by: Alexandru Ardelean --- lang/python/python/Makefile | 6 +++++- lang/python/python3/Makefile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index c70c486e8..5f698888a 100644 --- a/lang/python/python/Makefile +++ b/lang/python/python/Makefile @@ -268,9 +268,13 @@ define PyPackage/python/filespec endef HOST_LDFLAGS += \ - -Wl,--no-as-needed -lrt \ $$$$(pkg-config --static --libs libcrypto libssl) +ifeq ($(HOST_OS),Linux) +HOST_LDFLAGS += \ + -Wl,--no-as-needed -lrt +endif + HOST_CONFIGURE_ARGS+= \ --without-cxx-main \ --without-pymalloc \ diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index cd97378ce..794a2bf75 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -264,9 +264,13 @@ define Py3Package/python3/filespec endef HOST_LDFLAGS += \ - -Wl,--no-as-needed -lrt \ $$$$(pkg-config --static --libs libcrypto libssl) +ifeq ($(HOST_OS),Linux) +HOST_LDFLAGS += \ + -Wl,--no-as-needed -lrt +endif + HOST_CONFIGURE_ARGS+= \ --without-cxx-main \ --without-pymalloc \