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

前端 未结 5 1449
猫巷女王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:55

    Passing the following argument to configure script allowed me to build the 32bit library on 64bit Linux

    ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
    

提交回复
热议问题