diff --git a/0001-btls-Disable-BUILD_SHARED_LIBS-while-building-boring.patch b/0001-btls-Disable-BUILD_SHARED_LIBS-while-building-boring.patch new file mode 100644 index 0000000000..d3a7622034 --- /dev/null +++ b/0001-btls-Disable-BUILD_SHARED_LIBS-while-building-boring.patch @@ -0,0 +1,28 @@ +From e6e0fb82261340f9181d1b2b11a9706a16c5dbc7 Mon Sep 17 00:00:00 2001 +From: Zoltan Varga +Date: Fri, 4 Aug 2017 11:39:28 -0400 +Subject: [PATCH] [btls] Disable BUILD_SHARED_LIBS while building boringssl, so + its symbols are not exported from the btls shared lib. (#5307) + +--- + mono/btls/CMakeLists.txt | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/mono/btls/CMakeLists.txt b/mono/btls/CMakeLists.txt +index 9f2365d3e50..d33038d75cf 100644 +--- a/mono/btls/CMakeLists.txt ++++ b/mono/btls/CMakeLists.txt +@@ -31,7 +31,10 @@ set (CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${BTLS_CFLAGS}") + set (CMAKE_MACOSX_RPATH 1) + set (MONO_BTLS 1) + ++set(BUILD_SHARED_LIBS_SAVED "${BUILD_SHARED_LIBS}") ++set(BUILD_SHARED_LIBS OFF) + add_subdirectory (${BTLS_ROOT} boringssl) ++set(BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS_SAVED}") + + include_directories ( + ${SRC_DIR} +-- +2.11.0 + diff --git a/mono-core.spec b/mono-core.spec index d58a9dc222..82192d06ee 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -37,6 +37,7 @@ Group: Development/Languages/Mono Url: http://www.mono-project.com Source0: http://download.mono-project.com/sources/mono/mono-%{version}.tar.bz2 Patch0: provides-facades.patch +Patch1: 0001-btls-Disable-BUILD_SHARED_LIBS-while-building-boring.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -133,6 +134,7 @@ technologies that have been submitted to the ECMA for standardization. %prep %setup -q -n mono-%{version} %patch0 -p1 +%patch1 -p1 %build ./autogen.sh