Build 32bit on 64 bit Linux using an automake configure script?

前端 未结 5 1445
猫巷女王i
猫巷女王i 2020-12-04 06:59

I\'m using a 64bit system but want a set of 32bit binaries. What options must I pass to a configure script to generate a 32bit/x86 makefile?

5条回答
  •  离开以前
    2020-12-04 07:59

    I had better success by setting a custom compiler instead. This way all the configure tests, even the ones using custom CFLAGS, worked correctly:

    ./configure CC="gcc -m32" CXX="g++ -m32"
    

    You still need 32-bit versions of all the libraries the application uses of course, so any errors about missing libraries are referring to the 32-bit ones.

提交回复
热议问题