How to compile glibc 32bit on an x86_64 machine

前端 未结 3 921
一整个雨季
一整个雨季 2020-12-14 17:52

I\'m trying to compile glibc (as a secondary, not a system replacement) 2.6 on an x86_64, and trying to get it to produce 32-bit objects. When I give it a standard configure

3条回答
  •  自闭症患者
    2020-12-14 18:22

    The following works for me:

    ../../src/glibc-2.6/configure --prefix=$HOME/glibc32-2.6 \
     CC="gcc -m32" CXX="g++ -m32" i686-linux-gnu
    

提交回复
热议问题