Commit e5f2b2aa authored by Leonardo Arena's avatar Leonardo Arena

testing/lua-rapidjson: produce i586 code

parent 6f8f403f
......@@ -2,14 +2,16 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-rapidjson
pkgver=0.5.0
pkgrel=1
pkgrel=2
pkgdesc="A JSON module for Lua based on the very fast RapidJSON library"
url="https://github.com/xpol/lua-rapidjson"
arch="all"
license="MIT"
makedepends="cmake rapidjson-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/xpol/$pkgname/archive/v$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/xpol/$pkgname/archive/v$pkgver.tar.gz
disable-c-cxx-flag-march.patch
"
builddir="$srcdir/$pkgname-$pkgver"
_luaversions="5.1 5.2 5.3"
......@@ -61,4 +63,5 @@ _subpackage() {
"$subpkgdir"/$install_cmod/rapidjson.so
}
sha512sums="eb07792d01d6bf32d2ccec244fd5f55ce3e66b356b8e61f0dd86b7e6c4a5a582ab8cb64e2af1f79628e85409e60bf2edd05e2bff12be4987650d948baf246ef3 lua-rapidjson-0.5.0.tar.gz"
sha512sums="eb07792d01d6bf32d2ccec244fd5f55ce3e66b356b8e61f0dd86b7e6c4a5a582ab8cb64e2af1f79628e85409e60bf2edd05e2bff12be4987650d948baf246ef3 lua-rapidjson-0.5.0.tar.gz
9bfe86c75765d0684f33b660129c3ab90629b8518b05d14aa99ea15e6eb39dcb0a56e9a705f2dcae0f463e7ed92c8759628b0fbdaeee43aff34ac7e5b6c6bf10 disable-c-cxx-flag-march.patch"
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,8 +33,8 @@
set(PLAT "linux")
set(LINK_FLAGS "-shared")
endif(APPLE)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fPIC -march=native")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -fPIC -march=native")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fPIC")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -fPIC")
else(UNIX)
if(WIN32)
set(PLAT "win32")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment