makedumpfile: fix CFLAGS.
This commit is contained in:
parent
cc759347ae
commit
7ff5769168
1 changed files with 9 additions and 2 deletions
|
@ -2,8 +2,6 @@
|
|||
pkgname=makedumpfile
|
||||
version=1.5.8
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_build_args="LINKTYPE=dynamic USELZO=on"
|
||||
makedepends="elfutils-devel zlib-devel bzip2-devel liblzma-devel lzo-devel"
|
||||
depends="perl"
|
||||
short_desc="Make a small dumpfile of kdump"
|
||||
|
@ -13,6 +11,15 @@ homepage="http://sourceforge.net/projects/makedumpfile/"
|
|||
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}-${version}.tar.gz"
|
||||
checksum=dd9c6c40c1ae6774b61bbe7b53f5ebbee9734f576d8ecb75ffb929288f5ea64d
|
||||
|
||||
post_extract() {
|
||||
sed -i '/#define PAGESIZE/i#undef PAGESIZE' makedumpfile.h
|
||||
sed -i '1i#include <limits.h>' common.h
|
||||
sed -i 's@CFLAGS\(\|_ARCH\)[ \t]*= @& '"$CFLAGS -D_GNU_SOURCE @" Makefile
|
||||
}
|
||||
do_build() {
|
||||
make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin makedumpfile
|
||||
vbin makedumpfile-R.pl
|
||||
|
|
Loading…
Reference in a new issue