diff options
author | Jingbei Li | 2017-10-12 02:45:00 +0800 |
---|---|---|
committer | Jingbei Li | 2017-10-12 02:48:17 +0800 |
commit | fc49b1939f7bf95e2b5751679315ae3c1ae1fb0b (patch) | |
tree | 8d214413e2df2165d153abec328fcb6a10c4474c | |
parent | 0d29e7755bcf9ab5082aae3563fd747568d48abd (diff) | |
download | aur-fc49b1939f7bf95e2b5751679315ae3c1ae1fb0b.tar.gz |
added -fPIC
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 8 insertions, 15 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Oct 10 08:47:11 UTC 2017 +# Wed Oct 11 18:44:53 UTC 2017 pkgbase = torch7-warp-ctc pkgdesc = A fast parallel implementation of CTC, on both CPU and GPU. - pkgver = r56.5bfb46e - pkgrel = 2 + pkgver = v1.0.r28.g14858fe + pkgrel = 1 url = https://github.com/baidu-research/warp-ctc arch = x86_64 arch = i686 @@ -1,8 +1,8 @@ # Maintainer: Jingbei Li <i@jingbei.lli> pkgdesc='A fast parallel implementation of CTC, on both CPU and GPU.' pkgname='torch7-warp-ctc' -pkgver=r56.5bfb46e -pkgrel=2 +pkgver=v1.0.r28.g14858fe +pkgrel=1 makedepends=('cmake' 'git' 'torch7-cutorch-git') depends=('torch7-git>=r819') optdepends=('torch7-cutorch-git: For GPU support') @@ -22,8 +22,8 @@ pkgver () { } build () { - CFLAGS="${CFLAGS/-fno-plt/}" - CXXFLAGS="${CXXFLAGS/-fno-plt/}" + CFLAGS="${CFLAGS/-fno-plt/} -fPIC" + CXXFLAGS="${CXXFLAGS/-fno-plt/} -fPIC" cd "${pkgname}" sed 's/luajit/luajit-5.1/g' -i CMakeLists.txt @@ -35,12 +35,5 @@ build () { package () { cd "${pkgname}" - # Move Lua C module - mkdir -p "${pkgdir}/usr/lib/lua/5.1" - install -Dm755 "libwarpctc.so" "${pkgdir}/usr/lib/" - install -Dm755 "libwarp_ctc.so" "${pkgdir}/usr/lib/lua/5.1/" - - # Move pure Lua modules - mkdir -p "${pkgdir}/usr/share/lua/5.1/warp_ctc" - install -Dm644 "torch_binding/init.lua" "${pkgdir}/usr/share/lua/5.1/warp_ctc" + make DESTDIR=$pkgdir install } |