summaryrefslogtreecommitdiff
path: root/community/freeimage/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/freeimage/PKGBUILD')
-rw-r--r--community/freeimage/PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/community/freeimage/PKGBUILD b/community/freeimage/PKGBUILD
index 817429c57..c1d50fd01 100644
--- a/community/freeimage/PKGBUILD
+++ b/community/freeimage/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=freeimage
pkgver=3.15.3
pkgrel=2
pkgdesc="Library project for developers who would like to support popular graphics image formats"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'custom:FIPL')
url="http://freeimage.sourceforge.net/"
depends=('gcc-libs')
@@ -17,6 +17,13 @@ source=("http://downloads.sourceforge.net/project/freeimage/Source%20Distributio
md5sums=('6c305b4086500ff8541c596ea6fc7cd7')
build() {
+ if [ "$CARCH" != "i686" ] ; then
+ # The Makefile incorrectly assumes that only x86_64 shared
+ # libraries need PIC.
+ export CFLAGS="$CFLAGS -fPIC"
+ export CXXFLAGS="$CXXFLAGS -fPIC"
+ fi
+
cp -r FreeImage FreeImagefip
export CFLAGS="$CFLAGS -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS"