summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Depau2019-09-30 01:09:22 +0200
committerDavide Depau2019-09-30 01:09:22 +0200
commit39c6a7760103b29385fa00437c11b0b5440d6f18 (patch)
treefe34ed67cca59055735a40e6a75f51f9aee96741
parent3c78834f9a5879b232eaf818036a8db600109bc5 (diff)
downloadaur-39c6a7760103b29385fa00437c11b0b5440d6f18.tar.gz
Build PIC libraries
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 665f830062e..6a53d384aac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = avro-c
pkgdesc = C bindings for Avro data serialization framework
pkgver = 1.8.2
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/apache/avro
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 820d9222971..d1c8f124a63 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=avro-c
pkgver=1.8.2
-pkgrel=2
+pkgrel=3
pkgdesc="C bindings for Avro data serialization framework"
arch=('i686' 'x86_64')
depends=('jansson' 'snappy' 'xz' 'zlib')
@@ -23,6 +23,8 @@ build() {
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS=-fPIC \
+ -DCMAKE_CXX_FLAGS=-fPIC \
-DTHREADSAFE=true
make
}