Fix btls build failure due to bad flags
This commit is contained in:
parent
5b27880a07
commit
960c1b3882
19
3975.diff
Normal file
19
3975.diff
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/mono/btls/CMakeLists.txt b/mono/btls/CMakeLists.txt
|
||||||
|
index 7e5e84f..8734b71 100644
|
||||||
|
--- a/mono/btls/CMakeLists.txt
|
||||||
|
+++ b/mono/btls/CMakeLists.txt
|
||||||
|
@@ -24,8 +24,12 @@ if (NOT "${BTLS_ARCH}" STREQUAL "")
|
||||||
|
endif ()
|
||||||
|
if (BUILD_DYNAMIC_BTLS)
|
||||||
|
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
-endif ()
|
||||||
|
-set (C_CXX_FLAGS "-Wall -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
|
||||||
|
+ set (C_CXX_FLAGS "-Wall -Wsign-compare -Wmissing-field-initializers -fPIC -ggdb -fvisibility=hidden")
|
||||||
|
+elseif (BUILD_SHARED_LIBS)
|
||||||
|
+ set (C_CXX_FLAGS "-Wall -Wsign-compare -Wmissing-field-initializers -fPIC -ggdb -fvisibility=hidden")
|
||||||
|
+else ()
|
||||||
|
+ set (C_CXX_FLAGS "-Wall -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
|
||||||
|
+endif()
|
||||||
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_CXX_FLAGS} ${BTLS_CFLAGS}")
|
||||||
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${C_CXX_FLAGS} ${BTLS_CFLAGS}")
|
||||||
|
set (CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${BTLS_CFLAGS}")
|
@ -36,6 +36,7 @@ License: LGPL-2.1 and MIT and MS-PL
|
|||||||
Group: Development/Languages/Mono
|
Group: Development/Languages/Mono
|
||||||
Url: http://www.mono-project.com
|
Url: http://www.mono-project.com
|
||||||
Source0: http://download.mono-project.com/sources/mono/mono-%{version}.tar.bz2
|
Source0: http://download.mono-project.com/sources/mono/mono-%{version}.tar.bz2
|
||||||
|
Patch0: 3975.diff
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
@ -131,6 +132,7 @@ technologies that have been submitted to the ECMA for standardization.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mono-%{__majorver}
|
%setup -q -n mono-%{__majorver}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user