diff options
Diffstat (limited to 'community/freeimage/PKGBUILD')
-rw-r--r-- | community/freeimage/PKGBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/community/freeimage/PKGBUILD b/community/freeimage/PKGBUILD index 3d9a9d58e..1a3a5837e 100644 --- a/community/freeimage/PKGBUILD +++ b/community/freeimage/PKGBUILD @@ -8,7 +8,7 @@ pkgname=freeimage pkgver=3.15.4 pkgrel=1 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=('9f9a3b2c3c1b4fd24fe479e8aaee86b1') 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" |