dhex: unbreak cross compilation; enable PIE.

Close #1514
This commit is contained in:
Juan RP 2015-05-07 10:19:56 +02:00
parent 0b32390b25
commit a7df9c8959
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# Template file for 'dhex'
pkgname=dhex
version=0.68
revision=1
revision=2
build_pie=yes
makedepends="ncurses-devel"
short_desc="Hex editor and diff tool using ncurses"
maintainer="Alex Brem <alex@fluktuation.net>"
@ -12,6 +13,7 @@ checksum=126c34745b48a07448cfe36fe5913d37ec562ad72d3f732b99bd40f761f4da08
wrksrc="${pkgname}_${version}"
do_build() {
sed -i "s,-I/usr/include,-I${XBPS_CROSS_BASE}/usr/include,g" Makefile
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}