libcap: use our CFLAGS correctly.

This commit is contained in:
Juan RP 2014-09-22 11:39:35 +02:00
parent 122768dbcb
commit 01789fb6e8
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libcap'
pkgname=libcap
version=2.24
revision=2
revision=3
hostmakedepends="gperf perl"
makedepends="attr-devel"
short_desc="POSIX.1e capabilities suite"
@ -11,8 +11,12 @@ license="GPL-2"
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.xz"
checksum=cee4568f78dc851d726fc93f25f4ed91cc223b1fe8259daa4a77158d174e6c65
do_configure() {
sed -i 's/CFLAGS :=/CFLAGS +=/g' Make.Rules
sed -i '/BUILD_CFLAGS/s/$(CFLAGS)//' Make.Rules
}
do_build() {
make CC="$CC" BUILD_CC=cc CFLAGS="$CFLAGS"
make CC="$CC" BUILD_CC=cc
}
do_install() {
make DESTDIR=${DESTDIR} MANDIR=${DESTDIR}/usr/share/man \