I've been trying to cross-compiling z3 for arm32 on a x64 machine with arm-linux-gnu toolchain and clang/clang++, with the following environment settings:
I noticed that flags are missing in the command for generating libz3.so (the second line above) , e.g. -fuse-ld=lld-15 -mfloat-abi=soft --target=arm-linux-gnu -march=armv8-a -L/usr/arm-linux-gnueabi/lib/.
After reading the Makefile and the python scripts for making Makefile (scripts/mk_util.py), I think the following code causes the problem:
The commented line(L2603) adds LDFLAGS to SLIBEXTRAFLAGS, but it was commented in this commit. I fix the cross-compiling issue by simply uncommenting this line.
I wonder about the intention behind commenting out this line. If there is none, then it should be uncommented.
I've been trying to cross-compiling z3 for arm32 on a x64 machine with arm-linux-gnu toolchain and clang/clang++, with the following environment settings:
It went well until generating libz3.so:
I noticed that flags are missing in the command for generating libz3.so (the second line above) , e.g.
-fuse-ld=lld-15 -mfloat-abi=soft --target=arm-linux-gnu -march=armv8-a -L/usr/arm-linux-gnueabi/lib/
. After reading the Makefile and the python scripts for making Makefile (scripts/mk_util.py
), I think the following code causes the problem:The commented line(L2603) adds LDFLAGS to SLIBEXTRAFLAGS, but it was commented in this commit. I fix the cross-compiling issue by simply uncommenting this line.
I wonder about the intention behind commenting out this line. If there is none, then it should be uncommented.