mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 19:54:50 +00:00
Merge pull request #5758 from commodo/python-fix-macos-x-build
python,python3: attempt to fix Mac OS X host build issues
This commit is contained in:
@@ -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 \
|
||||
@@ -278,7 +282,6 @@ HOST_CONFIGURE_ARGS+= \
|
||||
--prefix=$(HOST_PYTHON_DIR) \
|
||||
--exec-prefix=$(HOST_PYTHON_DIR) \
|
||||
--with-system-expat=$(STAGING_DIR_HOSTPKG) \
|
||||
--with-system-ffi=no \
|
||||
--with-ensurepip=install \
|
||||
CONFIG_SITE=
|
||||
|
||||
|
||||
@@ -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 \
|
||||
@@ -274,7 +278,6 @@ HOST_CONFIGURE_ARGS+= \
|
||||
--prefix=$(HOST_PYTHON3_DIR) \
|
||||
--exec-prefix=$(HOST_PYTHON3_DIR) \
|
||||
--with-system-expat=$(STAGING_DIR_HOSTPKG) \
|
||||
--with-system-ffi=no \
|
||||
--with-ensurepip=install \
|
||||
CONFIG_SITE=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user