From 54e3d1a58e1ba872502769e2e1ed1463bf86568f Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 26 Aug 2015 00:03:10 +0200 Subject: [PATCH] darkhttpd: fix build PIE --- srcpkgs/darkhttpd/template | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/darkhttpd/template b/srcpkgs/darkhttpd/template index 93031e13bcf..1e7f5221930 100644 --- a/srcpkgs/darkhttpd/template +++ b/srcpkgs/darkhttpd/template @@ -1,16 +1,19 @@ # Template file for 'darkhttpd' pkgname=darkhttpd version=1.11 -revision=3 +revision=4 build_pie=yes -build_style=gnu-makefile short_desc="A small and secure static webserver" maintainer="Andrea Brancaleoni " license="BSD" homepage="http://dmr.ath.cx/net/darkhttpd/" distfiles="$homepage/$pkgname-$version.tar.bz2" checksum=afad244add43c53010b36ada6ccdf1a854885cb37d6aeff103ad0aa4aed96c51 +CFLAGS="$CFLAGS $LDFLAGS" -do_install() { - vbin darkhttpd +do_build() { + ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname} +} +do_install() { + vbin ${pkgname} }