aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-30 15:36:35 +0000
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:46 +0200
commit13fc6cf48d899de8424ca686e2718bb996667dc9 (patch)
treee4e0363d4782dbaca59977289dfb348b58096e73
parentd8ed00fe5bb4ae030975b07168683addc00749a5 (diff)
downloadpkgbuilds-13fc6cf48d899de8424ca686e2718bb996667dc9.tar.xz
weechat-git: add -fPIC to CFLAGS
With CMake 3.1 it fails to build without explicitly specifying -fPIC in CFLAGS. Not sure if bug in WeeChat’s build system or in CMake
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0a91356..5d5eb4c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@
# Mon Jun 1 14:56:11 UTC 2015
pkgbase = weechat-git
pkgdesc = Fast, light & extensible IRC client (curses UI)
- pkgver = 1.0.r242.ge253a25
+ pkgver = 1.1rc1.r12.gce98526
pkgrel = 1
url = http://www.weechat.org/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index b4b9746..f8de2b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=weechat-git
-pkgver=1.0.r242.ge253a25
+pkgver=1.1rc1.r12.gce98526
pkgrel=1
pkgdesc="Fast, light & extensible IRC client (curses UI)"
@@ -27,6 +27,10 @@ pkgver(){
build() {
cd weechat
+
+ # https://github.com/weechat/weechat/issues/287
+ export CFLAGS="$CFLAGS -fPIC"
+
cmake -DPREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so\