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

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

    An alternative way to the things described above would be (if you have) to use a dedicated x86 compiler. The configure line would then be like this (I named the x86-tools after the pattern "-x86"):

    CC="/path/to/c/compiler/gcc-x86" CXX="path/to/cpp/compiler/g++-x86" LD="path/to/linker/ld-x86" ./configure
    

提交回复
热议问题