mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #9762 from jefferyto/host-python-mac-openwrt-19.07
[openwrt-19.07] python,python3: Fix host Python compilation for macOS
This commit is contained in:
@@ -290,13 +290,18 @@ define PyPackage/python/filespec
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
HOST_LDFLAGS += \
|
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)
|
ifeq ($(HOST_OS),Linux)
|
||||||
HOST_LDFLAGS += \
|
HOST_LDFLAGS += \
|
||||||
-Wl,--no-as-needed -lrt
|
-Wl,--no-as-needed -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HOST_OS),Darwin)
|
||||||
|
HOST_CONFIGURE_VARS += \
|
||||||
|
ac_cv_header_libintl_h=no
|
||||||
|
endif
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS+= \
|
HOST_CONFIGURE_ARGS+= \
|
||||||
--without-cxx-main \
|
--without-cxx-main \
|
||||||
--without-pymalloc \
|
--without-pymalloc \
|
||||||
|
|||||||
@@ -285,13 +285,18 @@ define Py3Package/python3/filespec
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
HOST_LDFLAGS += \
|
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)
|
ifeq ($(HOST_OS),Linux)
|
||||||
HOST_LDFLAGS += \
|
HOST_LDFLAGS += \
|
||||||
-Wl,--no-as-needed -lrt
|
-Wl,--no-as-needed -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HOST_OS),Darwin)
|
||||||
|
HOST_CONFIGURE_VARS += \
|
||||||
|
ac_cv_header_libintl_h=no
|
||||||
|
endif
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS+= \
|
HOST_CONFIGURE_ARGS+= \
|
||||||
--without-cxx-main \
|
--without-cxx-main \
|
||||||
--without-pymalloc \
|
--without-pymalloc \
|
||||||
|
|||||||
Reference in New Issue
Block a user