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:
Hannu Nyman 2018-03-14 23:10:52 +02:00 committed by GitHub
commit a296a374c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -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=

View File

@ -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=