nestopia: fix PIE build

This commit is contained in:
Jürgen Buchmüller 2016-08-09 01:38:27 +02:00
parent ef781d72e3
commit 2f2997f316

View file

@ -1,7 +1,7 @@
# Template file for 'nestopia'
pkgname=nestopia
version=1.47
revision=2
revision=3
wrksrc="rdanbrook-nestopia-549c072"
hostmakedepends="pkg-config"
makedepends="SDL2-devel gtk+3-devel glu-devel libarchive-devel libao-devel"
@ -14,7 +14,8 @@ distfiles="https://github.com/rdanbrook/nestopia/tarball/${version}>${pkgname}-$
checksum=d6d374430a39d00ad0075f1253c82fce577f51241560c0e06ba805a6a1cbb1e7
do_build() {
make CC=$CC CXX=$CXX LDFLAGS="$LDFLAGS" PREFIX=/usr ${makejobs}
sed -i Makefile -e "s;^LDFLAGS =.*;LDFLAGS = $LDFLAGS;"
make CC=$CC CXX=$CXX PREFIX=/usr ${makejobs}
}
do_install() {
mkdir -p ${DESTDIR}/usr/{bin,share/$pkgname}