summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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