[python3] Fix dynamic build error on Linux (#11489)

* [python3] Fix dynamic build error on Linux

* Update baseline to resolve the regression
This commit is contained in:
NancyLi1013 2020-05-22 02:39:48 +08:00 committed by GitHub
parent cbe795f788
commit 4c1db6840f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,9 @@
Source: python3
Version: 3.7.3-2
Version: 3.7.3-3
Homepage: https://github.com/python/cpython
Description: The Python programming language as an embeddable library
Build-Depends: libffi, openssl
Feature: enable-shared
Description: Build shared libraries in addition to static ones built by default
Build-Depends: zlib (!uwp&!windows)

View File

@ -18,6 +18,9 @@ vcpkg_from_github(
if("enable-shared" IN_LIST FEATURES)
set(_ENABLED_SHARED --enable-shared)
if(VCPKG_TARGET_IS_LINUX)
message(WARNING"Feature enable-shared requires libffi-devel from the system package manager, please install it on Ubuntu system via sudo apt-get install libffi-dev.")
endif()
else()
unset(_ENABLED_SHARED)
endif()

View File

@ -1092,6 +1092,10 @@ miniupnpc:arm-uwp=fail
miniupnpc:x64-uwp=fail
minizip:arm-uwp=fail
minizip:x64-uwp=fail
# conflicts with stb
mlpack:x86-windows=skip
mlpack:x64-windows=skip
mlpack:x64-windows-static=skip
mman:x64-linux=fail
mman:x64-osx=fail
mmloader:arm64-windows=fail