Browse Source
Merge pull request #9760 from jefferyto/host-python-mac
python,python3: Fix host Python compilation for macOS
lilik-openwrt-22.03
Rosen Penev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
12 additions and
2 deletions
-
lang/python/python/Makefile
-
lang/python/python3/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 \
|
|
|
|
|
|
@ -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 \
|
|
|
|