Skip to content

Commit

Permalink
python,python3: limit underlinking behavior to linux platforms
Browse files Browse the repository at this point in the history
This change was introduced in commit 1c54e2b to address build
issues on Ubuntu 12.04.

However it was reported to cause issues on Mac OS X.
Report: openwrt#5310

It was also reported that removing this on MacOS X fixes the issue.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
  • Loading branch information
commodo committed Mar 14, 2018
1 parent 4505775 commit ea62d12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lang/python/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 5 additions & 1 deletion lang/python/python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit ea62d12

Please sign in to comment.