makedumpfile: fix PIE by injecting CFLAGS later.
This commit is contained in:
parent
8cc8da01d9
commit
6d4d98e8df
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'makedumpfile'
|
||||
pkgname=makedumpfile
|
||||
version=1.5.9
|
||||
revision=1
|
||||
revision=2
|
||||
makedepends="elfutils-devel zlib-devel bzip2-devel liblzma-devel lzo-devel"
|
||||
depends="perl"
|
||||
short_desc="Make a small dumpfile of kdump"
|
||||
|
@ -14,10 +14,11 @@ checksum=47d16312b3226f6d1a1e6548e22c33d00e8851fedab793d97da8d3c0a6205d4a
|
|||
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
|
||||
sed -i 's@CFLAGS\(\|_ARCH\)[ \t]*= @& $(CF) @' Makefile
|
||||
}
|
||||
do_build() {
|
||||
make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
|
||||
make CC="$CC" LD="$LD" CF="$CFLAGS -D_GNU_SOURCE" \
|
||||
LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in a new issue