I have downloaded p7zip source code and try to build on Linux X86_64 platform. But I haven't found suitable makefile file for it. Which one is right?
Then I tried to use makefile.linux_x86_asm_gcc_4.X to replace makefile.machine and modify -m32 to -m64. Then I got an error as below:
/usr/bin/ld: i386 architecture of input file `7zCrcT8U.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/zanshigang/ContentExtractor/p7zip_9.04/CPP/7zip/Bundles/Format7zFree'
make: *** Error 2
What is the proper steps to build p7zip on Linux x86_64 platform?
x86_64 is AMD64
cp makefile.linux_amd64_asm makefile.machine