crash: fix PIE.
This commit is contained in:
parent
74def95013
commit
5bdfa21be1
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'crash'
|
||||
pkgname=crash
|
||||
version=7.1.5
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="flex"
|
||||
makedepends="ncurses-devel zlib-devel lzo-devel"
|
||||
|
@ -12,6 +12,7 @@ homepage="http://people.redhat.com/anderson/"
|
|||
distfiles="http://people.redhat.com/anderson/${pkgname}-${version}.tar.gz"
|
||||
checksum=bb1f6f0a614d188176eb4daf5c44782bf770bdcc9af4024ad5acfc5534e7ae4c
|
||||
nocross=yes
|
||||
LDFLAGS=-llzo2
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*) nopie=yes;; # broken CPUID inline assembly
|
||||
|
@ -21,6 +22,7 @@ post_extract() {
|
|||
sed -i 's|arch|uname -a|g' extensions/snap.mk
|
||||
sed -i 's|/usr/lib/debug/lib/modules|/usr/lib/debug/usr/lib/modules|g' defs.h
|
||||
sed -i 's|/boot/efi/redhat|/usr/lib/debug/boot/|g' filesys.c
|
||||
sed -i '/^LDFLAGS=/d' Makefile
|
||||
}
|
||||
do_build() {
|
||||
make gdb_unzip
|
||||
|
|
Loading…
Reference in New Issue