SHA256
1
0
forked from pool/clFFT

Accepting request 536290 from science

1

OBS-URL: https://build.opensuse.org/request/show/536290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clFFT?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2017-10-25 15:47:20 +00:00 committed by Git OBS Bridge
commit da8b37018a
3 changed files with 29 additions and 0 deletions

19
clFFT-fix-aarm64.patch Normal file
View File

@ -0,0 +1,19 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ee2600b..db053a2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -219,14 +219,6 @@ elseif( CMAKE_COMPILER_IS_GNUCXX )
add_definitions( "/D_DEBUG" )
endif( )
- if( BUILD64 )
- set( CMAKE_CXX_FLAGS "-m64 ${CMAKE_CXX_FLAGS}" )
- set( CMAKE_C_FLAGS "-m64 ${CMAKE_C_FLAGS}" )
- else( )
- set( CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}" )
- set( CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
- endif( )
-
if( CODE_COVERAGE )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage" )

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Oct 22 17:47:07 UTC 2017 - mardnh@gmx.de
- Add patch:
* clFFT-fix-aarm64.patch (Fix build for aarch64)
-------------------------------------------------------------------
Wed Oct 11 14:53:51 UTC 2017 - mpluskal@suse.com

View File

@ -31,6 +31,7 @@ Url: https://github.com/clMathLibraries/clFFT
Source: https://github.com/clMathLibraries/clFFT/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: clFFT-client.1
Patch0: fix-client-no-symlink.patch
Patch1: clFFT-fix-aarm64.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: opencl-headers
@ -108,6 +109,9 @@ This subpackage provides shared libStatTimer library
%prep
%setup -q
%patch0 -p1
%ifarch aarch64
%patch1 -p1
%endif
%build
cd src