xa: pass LDFLAGS to all builds.

This commit is contained in:
Christian Neukirchen 2016-05-24 16:48:25 +02:00
parent fd8c06e611
commit 9dd572b16a
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'xa'
pkgname=xa
version=2.3.7
revision=1
revision=2
short_desc="6502 cross assembler"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
@ -9,10 +9,12 @@ homepage="http://www.floodgap.com/retrotech/xa/"
distfiles="http://www.floodgap.com/retrotech/xa/dists/xa-${version}.tar.gz"
checksum=34e792c159584153f5b5a246ae5d2142dfc92a20b673ea8c9e04584bde594442
post_extract() {
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' misc/Makefile
}
do_build() {
make CC=$CC LD=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
do_install() {
make DESTDIR="$DESTDIR/usr" install
}