shadow: pass PIE flags at build time.

This commit is contained in:
Juan RP 2013-10-28 15:58:40 +01:00
parent 375b804304
commit a100833db1

View file

@ -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() {