From a60c7c56cc14a724d8990e7479e794660f3321d8 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sun, 6 May 2012 16:12:01 +0200 Subject: Fix freeimage link error. --- community/freeimage/PKGBUILD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/community/freeimage/PKGBUILD b/community/freeimage/PKGBUILD index 225791d59..9eff60264 100644 --- a/community/freeimage/PKGBUILD +++ b/community/freeimage/PKGBUILD @@ -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 cd FreeImage -- cgit v1.2.3-54-g00ecf