From 3a9c341a5d2f1455fe93f949e66675194b52ce61 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 24 Aug 2015 13:20:53 +0200 Subject: [PATCH] ulatencyd: build PIE --- srcpkgs/ulatencyd/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/ulatencyd/template b/srcpkgs/ulatencyd/template index 7e50e1f56fc..7e4055fc559 100644 --- a/srcpkgs/ulatencyd/template +++ b/srcpkgs/ulatencyd/template @@ -1,9 +1,10 @@ # Template file for 'ulatencyd' pkgname=ulatencyd version=0.6.0 -revision=5 +revision=6 _subrelease=alpha.2.1 wrksrc="${pkgname}-${version}-${_subrelease}" +build_pie=yes build_style=cmake hostmakedepends="cmake pkg-config" makedepends="procps-ng-devel glib-devel dbus-glib-devel lua51-devel libxcb-devel" @@ -15,7 +16,9 @@ homepage="https://github.com/poelzi/${pkgname}" distfiles="${homepage}/archive/${version}-${_subrelease}.tar.gz" checksum=efaf0cf814ef36b9d63f6a588482a2f1ac435163ff5e9d8d20ce07de58efbf2e -configure_args="-DCMAKE_EXE_LINKER_FLAGS=-ldl -DDEVELOP_MODE=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSYSTEMD_DIR=''" +LDFLAGS+=" -Wl,-Bdynamic -lm -ldl" + +configure_args="-DDEVELOP_MODE=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSYSTEMD_DIR=''" conf_files=" /etc/dbus-1/system.d/org.quamquam.ulatencyd.conf /etc/ulatencyd/simple.conf