|
发表于 2010-10-17 10:48:56
|
显示全部楼层
不可能,我用ehl(LFS6。3)编译的程序一切正常。
例:
root [ ~ ]# echo 'main(){}'>dummy.c
root [ ~ ]# cc dummy.c
root [ ~ ]# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped
root [ ~ ]# cc -v
使用内建 specs。
目标:i686-pc-linux-gnu
配置为:../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
线程模型:posix
gcc 版本 4.1.2
root [ ~ ]# as --version
GNU assembler 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.
root [ ~ ]# uname -a
Linux EHLR1 2.6.22.5_EHLR1_K01 #1 SMP Thu Aug 12 08:50:23 CST 2010 i686 i686 i386 GNU/Linux
root [ ~ ]# ldconfig --version
ldconfig (GNU libc) 2.5.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger. |
|