uboot-mkimage: use our {C,LD}FLAGS; enable PIE.

This commit is contained in:
Alessio Sergi 2016-05-20 23:40:20 +02:00
parent 0727d3d026
commit fa5c5e6f46
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'uboot-mkimage'
pkgname=uboot-mkimage
version=2014.01
revision=4
revision=5
wrksrc="u-boot-${version}"
short_desc="The U-Boot mkimage utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -15,12 +15,11 @@ do_configure() {
}
do_build() {
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
make HOSTSTRIP=: HOSTCC="$XBPS_CROSS_TRIPLET-gcc" tools
make HOSTSTRIP=: HOSTCC="$XBPS_CROSS_TRIPLET-gcc $CFLAGS $LDFLAGS" tools
else
make HOSTSTRIP=: tools
make HOSTSTRIP=: HOSTCC="$CC $CFLAGS $LDFLAGS" tools
fi
}
do_install() {
vbin tools/mkimage
vman doc/mkimage.1