summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2021-05-16 12:42:54 +0200
committerbartus2021-05-16 12:42:54 +0200
commitb41ed3f52165ff8fa831766c0de8245efebfdc20 (patch)
tree09b011f7ea0c4e2cab1237fe49075ea8271f56ef /PKGBUILD
parentaa5ff72da3642afeeb2765d746c27c7d81f86db6 (diff)
downloadaur-libnn-git.tar.gz
Fix CFLAGS_TRIANGLE
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e9a17de5c09..8deff1e2dd5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,9 +16,13 @@ pkgver() {
git -C "${srcdir}/${pkgname}" describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
+prepare() {
+ cat >> "${srcdir}/${pkgname}"/nn/CUSTOMISE <<<'CFLAGS_TRIANGLE+=" -fPIC"'
+}
+
build() {
cd "$srcdir/$pkgname/nn"
- export CFLAGS+=" -fPIC"
+ export CFLAGS+=" -fPIC -Wall -pedantic -D_GNU_SOURCE -std=c99"
./configure \
--prefix=$pkgdir/usr
make