[FZH] 64位主机编译32位程序问题

chen.chenchacha at gmail.com chen.chenchacha at gmail.com
Mon Jun 24 02:01:14 UTC 2013


On 09:43 Mon 24 Jun   , 牛博恩 wrote:
> 情况同这篇帖子:
> http://forums.opensuse.org/english/other-forums/development/programming-scripting/413971-how-do-you-compile-32-bit-glibc-64-bit-sled.html
> 
> 在RHEL5上编译glibc
> CFLAGS="-m32 -04 -march=i386 -mtune=i386"
> libc_cv_c_cleanup="yes"
> libc_cv_forced_unwind="yes"
> ./glibc-2.9/configure --prefix=/opt/usr --disable-profile --enable-add-ons --host=i686-pc-linux-gnu
> 
> 编译不成功,求帮助。
试试这个:
BUILD_CC="gcc" CC="gcc -m32" \
../configure --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu \
--prefix=/usr --enable-add-ons --disable-profile \
libc_cv_c_cleanup=yes libc_cv_forced_unwind=yes


More information about the Chinese mailing list