aboutsummaryrefslogtreecommitdiffstats
path: root/community/rapidjson/disable-march-cxx-flag.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-04-04 09:10:21 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-04 09:10:32 +0000
commit3e97eb2f92a8f2518aef6d8c5e25c394be3cc785 (patch)
tree290955d14b9f88f7677249f3de4568a25a5b0a6e /community/rapidjson/disable-march-cxx-flag.patch
parent313be3623d20ce034b4120777c1dd874f1f55dcf (diff)
downloadaports-3e97eb2f92a8f2518aef6d8c5e25c394be3cc785.tar.gz
aports-3e97eb2f92a8f2518aef6d8c5e25c394be3cc785.tar.bz2
aports-3e97eb2f92a8f2518aef6d8c5e25c394be3cc785.tar.xz
community/rapidjson: generate i586 code
Diffstat (limited to 'community/rapidjson/disable-march-cxx-flag.patch')
-rw-r--r--community/rapidjson/disable-march-cxx-flag.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/rapidjson/disable-march-cxx-flag.patch b/community/rapidjson/disable-march-cxx-flag.patch
new file mode 100644
index 0000000000..768c9fc96d
--- /dev/null
+++ b/community/rapidjson/disable-march-cxx-flag.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -50,7 +50,7 @@
+ endif(CCACHE_FOUND)
+
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
+ if (RAPIDJSON_BUILD_CXX11)
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+@@ -73,7 +73,7 @@
+ endif()
+ endif()
+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror -Wno-missing-field-initializers")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-missing-field-initializers")
+ if (RAPIDJSON_BUILD_CXX11)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ endif()