From 2ef6b95eede10074de9643d70b7e15c216bea67b Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Mon, 5 Sep 2016 21:30:20 +0200 Subject: [PATCH] dhcpcd-qt: fix PIE See #4572 --- srcpkgs/dhcpcd-qt/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/dhcpcd-qt/template b/srcpkgs/dhcpcd-qt/template index b18e2dab13b..a0002086259 100644 --- a/srcpkgs/dhcpcd-qt/template +++ b/srcpkgs/dhcpcd-qt/template @@ -1,7 +1,7 @@ # Template file for 'dhcpcd-qt' pkgname=dhcpcd-qt version=0.7.5 -revision=2 +revision=3 wrksrc="dhcpcd-ui-${version}" build_style=gnu-configure configure_args="--with-qt --without-dhcpcd-online --without-icons --with-notification" @@ -15,6 +15,13 @@ maintainer="Juan RP " distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-ui-$version.tar.bz2" checksum=2dae2108605867aba78d98cc9e56e22d7b751eedc3f7e6d689d42d08e706aaf3 +post_configure() { + sed -i src/dhcpcd-qt/Makefile \ + -e "s;^\(CFLAGS.*=.*\);& ${CFLAGS};" \ + -e "s;^\(CXXFLAGS.*=.*\);& ${CXXFLAGS};" \ + -e "s;^\(LFLAGS.*=.*\);& ${LDFLAGS};" +} + do_install() { make INSTALL_ROOT=${DESTDIR} install }