summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-05-06 16:12:01 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-05-06 16:12:01 +0200
commita60c7c56cc14a724d8990e7479e794660f3321d8 (patch)
treee7e2e7d09189fa074d1b7239d4a580aa82ca4c83 /community
parent601a559448eb957ac98aca7a6e03de59e45fff91 (diff)
Fix freeimage link error.
Diffstat (limited to 'community')
-rw-r--r--community/freeimage/PKGBUILD7
1 files changed, 7 insertions, 0 deletions
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