I'm trying to compile a (slightly) old version of ImageMagick on a 64-
bit (Ubuntu) system for 32-bits, but the build chokes when running
libtool due to libtool passing the wrong path to a library.

$ bin/bash ./libtool --tag=CC --mode=link gcc -m32 -I/usr/include -
Wall -W -pthread -L/usr/lib32 -L/usr/local/lib32 -L/emul/ia32-linux/
usr/lib -lfreetype -lz -o utilities/animate -lfreetype -lz utilities/
animate.o magick/libMagick.la wand/libWand.la

gcc -m32 -I/usr/include -Wall -W -pthread -m32 -o utilities/animate
utilities/animate.o -L/usr/lib32 -L/usr/local/lib32 -L/emul/ia32-
linux/usr/lib magick/.libs/libMagick.a wand/.libs/libWand.a -ltiff -
ljpeg -lfontconfig -lXext -lbz2 -lpthread /usr/lib/libfreetype.so -lz -
ldl -lSM -lICE -lX11 -lm

/usr/lib/libfreetype.so: could not read symbols: File in wrong format

(Notice path of libfreetype.so)

$ file /usr/lib32/libfreetype.so /usr/lib32/libfreetype.so.6.3.10
/usr/lib32/libfreetype.so: symbolic link to `libfreetype.so.
/usr/lib32/libfreetype.so.6.3.10: ELF 32-bit LSB shared object, Intel
80386, version 1 (SYSV), stripped

I was wondering if anyone had any idea how to fix this libtool screwup.