From a74395b4663083b7700aead7754123ed362a40bb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Apr 2015 10:33:04 +0200 Subject: [PATCH] mt-st: enable build_pie; use our {C,LD}FLAGS. --- srcpkgs/mt-st/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/mt-st/template b/srcpkgs/mt-st/template index f6f3813a0e5..a5586dac7c4 100644 --- a/srcpkgs/mt-st/template +++ b/srcpkgs/mt-st/template @@ -1,8 +1,8 @@ # Template file for 'mt-st' pkgname=mt-st version=1.1 -revision=1 -build_style=gnu-makefile +revision=2 +build_pie=yes short_desc="Linux SCSI tape driver aware magnetic tape control (aka mt)" maintainer="allan " license="GPL-2" @@ -10,6 +10,9 @@ homepage="http://ftp.ibiblio.org/pub/linux/system/backup/" distfiles="ftp://ftp.ibiblio.org/pub/linux/system/backup/mt-st-${version}.tar.gz" checksum=945cb4f3d9957dabe768f5941a9148b746396836c797b25f020c84319ba8170d +do_build() { + make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" +} do_install() { vbin mt vman mt.1