Browse Source

Merge pull request #5758 from commodo/python-fix-macos-x-build

python,python3: attempt to fix Mac OS X host build issues
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
a296a374c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions
  1. +5
    -2
      lang/python/python/Makefile
  2. +5
    -2
      lang/python/python3/Makefile

+ 5
- 2
lang/python/python/Makefile 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=


+ 5
- 2
lang/python/python3/Makefile 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=


Loading…
Cancel
Save