I need some help to configure swftools with mips:
LDFLAGS='-L/home/pablo/zlib-1.2.7' \
CPPFLAGS='-I/home/pablo/zlib-1.2.7' \
CC=mips-unknown-elf-gcc \
CXX=mips-unknown-elf-g++ \
./configure --host=mips-unknown-elf
shows the following message:
ERROR:
You need zlib to compile swftools
the reason because the zlib library is not found is in the config.log (attached in this email):
configure:4531: mips-unknown-elf-gcc -o conftest -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer -L/usr/local/lib conftest.c -lz -lm >&5
/usr/local/lib/libz.so: file not recognized: File format not recognized
This is partially right, because the the /usr/local/lib/libz.so library exists and it is a native library (Linux), so the mips compiler does not recognizes the format.Therefore, I compiled the zlib library (v1.2.7) with the mips compiler into the /home/pablo/zlib-1.2.7 directory and added the following two variables:
LDFLAGS='-L/home/pablo/zlib-1.2.7' \
CPPFLAGS='-I/home/pablo/zlib-1.2.7' \
Nevertheless, they seem be ignored by the
./configure command according to the
config.log (line 306):
LDFLAGS=' -L/usr/local/lib'
So, probably this is a generic question about SFWTools or even GCC. How can it be configured to look for the libraries in a custom directory?
Many thanks,
Pablo