celestia-glut: proper fix for PIE

This commit is contained in:
Juergen Buchmueller 2016-09-02 17:57:58 +02:00
parent 6892758e20
commit b335e009b8
1 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,8 @@
# Template file for 'celestia-glut'
pkgname=celestia-glut
version=1.6.1
revision=4
short_desc="free space simulation using GLUT"
revision=5
short_desc="Free space simulation using GLUT"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-2"
homepage="http://www.shatters.net/celestia/"
@ -17,7 +17,8 @@ wrksrc=celestia-${version}
provides="celestia-${version}_${revision}"
replaces="celestia>=0"
do_build() {
local _libs="-lpng -ljpeg -llua5.1 -lglut -lGLU -lGL -logg -ltheora -lz -ldl"
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="${LDFLAGS} ${_libs} -pthread"
do_configure() {
CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
LIBS="-lpng -ljpeg -llua5.1 -lglut -lGLU -lGL -logg -ltheora -lz -ldl -pthread" \
./configure ${configure_args}
}