diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template index fcd5c7b5a1e..81e56aed769 100644 --- a/srcpkgs/shadow/template +++ b/srcpkgs/shadow/template @@ -14,10 +14,6 @@ homepage="http://pkg-shadow.alioth.debian.org" distfiles="$homepage/releases/$pkgname-$version.tar.bz2" checksum=aa32333748d68b58ed3a83625f0165e0f6b9dc4639e6377c9300c6bf4fe978fb -# Build PIE binaries by default. -CFLAGS="-fPIE" -LDFLAGS="-pie" - if [ "$CROSS_BUILD" ]; then hostmakedepends="automake libtool gettext-devel" pre_configure() { @@ -25,12 +21,14 @@ if [ "$CROSS_BUILD" ]; then } fi -pre_build() { +do_build() { # Don't install groups(1), we use the one from coreutils. sed -i 's/groups$(EXEEXT) //' src/Makefile for f in $(find man -name Makefile); do sed -i 's/groups\.1 / /' $f done + # Build PIE binaries by default. + make CFLAGS+=" -fPIE" LDFLAGS+=" -pie" ${makejobs} } post_install() {