how to build 32 bit fontconfig with centos 7.9 64bit system
Build env:
Linux HW0016385 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Actually it is CentOs7 64bit.
Question: I configure as below with -m32, but the **make **did not pick the option to build 32bit, it still build with 64bit.
Anyone can help? thanks.
./configure \
--with-arch=x86 \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-docs \
--enable-static=yes \
--enable-shared=no \
--with-pic=yes \
--docdir=/usr/share/doc/fontconfig-2.14.0 \
--build=i686-pc-linux-gnu \
CFLAGS="-m32 -std=c99" \
LDFLAGS="-m32"
if make ;
then
echo ------build successfully------!!!
else
echo ------build failed------!!!
exit 1
fi