lshw: fix PIE.

This commit is contained in:
Christian Neukirchen 2016-06-21 21:25:30 +02:00
parent c7f9795673
commit 0c2a0b8a4a
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template build file for 'lshw'.
pkgname=lshw
version=B.02.18
revision=4
revision=5
makedepends="gtk+-devel libglade-devel sqlite-devel"
hostmakedepends="docbook2x pkg-config"
short_desc="Hardware lister application"
@ -17,8 +17,9 @@ do_build() {
find . -type f -exec sed -i "{}" -e "s;__uint;uint;g" \;
;;
esac
sed -i 's,CXXFLAGS=,CXXFLAGS += ,g' src/Makefile
make CC=$CC CXX=$CXX PREFIX=/usr SBINDIR=/usr/bin ${makejobs}
sed -i 's,CXXFLAGS=,CXXFLAGS += ,g; s,LDFLAGS=,LDFLAGS += ,g' \
src/Makefile src/gui/Makefile
make CC=$CC CXX=$CXX PREFIX=/usr SBINDIR=/usr/bin ${makejobs} all gui
}
do_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} install install-gui