Accepting request 305703 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/305703 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh?expand=0&rev=36
This commit is contained in:
commit
9a6af30163
11
gcc5-fixes.patch
Normal file
11
gcc5-fixes.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- cmake/Modules/DefineCompilerFlags.cmake
|
||||||
|
+++ cmake/Modules/DefineCompilerFlags.cmake
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
||||||
|
|
||||||
|
# add -Wconversion ?
|
||||||
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
|
||||||
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 6 20:26:52 UTC 2015 - dmueller@suse.com
|
||||||
|
|
||||||
|
- add gcc5-fixes.patch: Fix build against GCC 5.x
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 30 14:08:31 UTC 2015 - asn@cryptomilk.org
|
Thu Apr 30 14:08:31 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ Url: https://www.libssh.org
|
|||||||
|
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
Patch0: gcc5-fixes.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -86,6 +87,7 @@ Documentation for libssh development.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if test ! -e "build"; then
|
if test ! -e "build"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user