wireless_tools: use $LDFLAGS for shared library build.

This commit is contained in:
Christian Neukirchen 2015-08-18 13:51:39 +02:00
parent 79eeab0d10
commit 56109e184a

View file

@ -1,7 +1,7 @@
# Template file for 'wireless_tools'
pkgname=wireless_tools
version=29
revision=7
revision=8
build_pie=yes
wrksrc="${pkgname}.${version}"
short_desc="Set of tools allowing to manipulate the Wireless Extensions"
@ -12,7 +12,7 @@ distfiles="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$pkgname.$versio
checksum=6fb80935fe208538131ce2c4178221bab1078a1656306bce8909c19887e2e5a1
do_build() {
sed -e "s|CFLAGS=|CFLAGS+=|g" -i Makefile
sed -i -e 's|CFLAGS=|CFLAGS+=|g' -e 's|-shared|& $(LDFLAGS)|g' Makefile
make CC="$CC" LD="$LD" AR="$AR" RANLIB="$RANLIB" ${makejobs}
}