diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-05-06 16:12:01 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-05-06 16:12:01 +0200 |
commit | a60c7c56cc14a724d8990e7479e794660f3321d8 (patch) | |
tree | e7e2e7d09189fa074d1b7239d4a580aa82ca4c83 | |
parent | 601a559448eb957ac98aca7a6e03de59e45fff91 (diff) |
Fix freeimage link error.
-rw-r--r-- | community/freeimage/PKGBUILD | 7 |
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 |