summaryrefslogtreecommitdiff
path: root/lang/python/python3/Makefile
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2018-03-14 16:18:27 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2018-03-14 16:18:30 +0200
commitea62d1217caa286e22f1db1e9e53dc9b662ac1d6 (patch)
treedcf20cc8f34398d40bb2a9bdfba945245ab505ba /lang/python/python3/Makefile
parent450577536f5abb452bda77d9619a8238c13ce613 (diff)
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 <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python3/Makefile')
-rw-r--r--lang/python/python3/Makefile6
1 files changed, 5 insertions, 1 deletions
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 \