commit 64d5a4fcf99f359c881a12ac7a8d64680e9f8d78
Author: Jakub Bogusz <[email protected]>
Date:   Thu Apr 25 19:58:06 2019 +0200

    - added no-march patch (avoid esp. -march=i686 on x32)

 rockchip-mpp-no-march.patch | 13 +++++++++++++
 rockchip-mpp.spec           |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/rockchip-mpp.spec b/rockchip-mpp.spec
index f19dfb6..a445d65 100644
--- a/rockchip-mpp.spec
+++ b/rockchip-mpp.spec
@@ -12,6 +12,7 @@ Group:                Libraries
 #Source0Download: https://github.com/rockchip-linux/mpp/releases
 Source0:       
https://github.com/rockchip-linux/mpp/archive/release_%{version}/mpp-%{version}.tar.gz
 # Source0-md5: 6c2c941ebc506e6a3bd7d911dd8dc184
+Patch0:                %{name}-no-march.patch
 URL:           http://opensource.rock-chips.com/wiki_Mpp
 BuildRequires: cmake >= 2.8.8
 BuildRequires: libstdc++-devel
@@ -50,6 +51,7 @@ Statyczne biblioteki Rockchip MPP.
 
 %prep
 %setup -q -n mpp-release_%{version}
+%patch0 -p1
 
 %build
 # "build" directory is already occupied, so use "builddir"
diff --git a/rockchip-mpp-no-march.patch b/rockchip-mpp-no-march.patch
new file mode 100644
index 0000000..f6eef8e
--- /dev/null
+++ b/rockchip-mpp-no-march.patch
@@ -0,0 +1,13 @@
+--- mpp-release_20171218/CMakeLists.txt.orig   2017-12-19 12:46:36.000000000 
+0100
++++ mpp-release_20171218/CMakeLists.txt        2019-04-25 19:46:31.935110835 
+0200
+@@ -192,10 +192,6 @@
+         elseif(ARMEABI_V7A_HARDFP)
+             add_definitions(-march=armv7-a -mfloat-abi=hard -mfpu=neon)
+         endif()
+-    else()
+-        if(X86 AND NOT X64)
+-            add_definitions(-march=i686)
+-        endif()
+     endif()
+ 
+     if($(CMAKE_BUILD_TYPE) MATCHES "Release")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rockchip-mpp.git/commitdiff/64d5a4fcf99f359c881a12ac7a8d64680e9f8d78

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to