From 13fc6cf48d899de8424ca686e2718bb996667dc9 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 30 Dec 2014 15:36:35 +0000 Subject: weechat-git: add -fPIC to CFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .SRCINFO | 2 +- PKGBUILD | 6 +++++- 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\ -- cgit v1.2.3-70-g09d2