tesseract: fix PIE

See #4572
This commit is contained in:
Juergen Buchmueller 2016-09-11 00:11:16 +02:00
parent 9b661aaa04
commit 1f3adc7459
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'tesseract'
pkgname=tesseract
version=1
revision=3
revision=4
wrksrc="$pkgname"
hostmakedepends="pkg-config ImageMagick"
makedepends="SDL2_image-devel SDL2_mixer-devel MesaLib-devel libpng-devel zlib-devel"
@ -17,6 +17,11 @@ pre_build() {
for dim in 16 32 48 64 128 256 512; do
convert -resize "${dim}x${dim}" media/interface/cube.png "${pkgname}${dim}.png"
done
sed -i src/Makefile \
-e"s;-o tess_client;${LDFLAGS} &;" \
-e"s;-o tess_server;${LDFLAGS} &;"
sed -i src/enet/Makefile \
-e"s;^\(CFLAGS=\).*;\1${CFLAGS};"
}
do_build() {
make ${makejobs} -C src CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer -ffast-math"