diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-08-16 23:00:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 23:00:19 -0700 |
commit | 62262156c6d3829622005fd819dbd4ddd79d00e9 (patch) | |
tree | 90db91d3dff95d93a8e83f872497beb8a9d7a32d | |
parent | 6c8460432090dc718776a5c41d32960ac6afd440 (diff) | |
parent | 229c23a440192f068376414ae2258fb6b8d9f23b (diff) |
Merge pull request #9760 from jefferyto/host-python-mac
python,python3: Fix host Python compilation for macOS
-rw-r--r-- | lang/python/python/Makefile | 7 | ||||
-rw-r--r-- | lang/python/python3/Makefile | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index bfd9c4103..b75e22966 100644 --- a/lang/python/python/Makefile +++ b/lang/python/python/Makefile @@ -290,13 +290,18 @@ define PyPackage/python/filespec endef HOST_LDFLAGS += \ - $$$$(pkg-config --static --libs libcrypto libssl) -Wl$(comma)-rpath=$(STAGING_DIR_HOSTPKG)/lib + -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib ifeq ($(HOST_OS),Linux) HOST_LDFLAGS += \ -Wl,--no-as-needed -lrt endif +ifeq ($(HOST_OS),Darwin) +HOST_CONFIGURE_VARS += \ + ac_cv_header_libintl_h=no +endif + HOST_CONFIGURE_ARGS+= \ --without-cxx-main \ --without-pymalloc \ diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 4cd1dc997..79a71ccaf 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -285,13 +285,18 @@ define Py3Package/python3/filespec endef HOST_LDFLAGS += \ - $$$$(pkg-config --static --libs libcrypto libssl) -Wl$(comma)-rpath=$(STAGING_DIR_HOSTPKG)/lib + -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib ifeq ($(HOST_OS),Linux) HOST_LDFLAGS += \ -Wl,--no-as-needed -lrt endif +ifeq ($(HOST_OS),Darwin) +HOST_CONFIGURE_VARS += \ + ac_cv_header_libintl_h=no +endif + HOST_CONFIGURE_ARGS+= \ --without-cxx-main \ --without-pymalloc \ |