|
[lfs@DXY bash-2.05a]$ ./configure --enable-static-link --prefix=$LFS/static --with-curses
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Beginning configuration for bash-2.05a for i686-pc-linux-gnu
checking for gcc... gcc -s
checking for C compiler default output... conftest.c
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
[lfs@DXY bash-2.05a]$ ./configure --host --enable-static-link --prefix=$LFS/static --with-curses
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `--enable-static-link': machine `--enable-static' not recognized
configure: error: /bin/sh ./support/config.sub --enable-static-link failed
[lfs@DXY bash-2.05a]$
我的~/.bash_profile
mask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC='gcc -s'
export LFS LC_ALL CC
平时gcc能够正常编译,
[lfs@DXY bash-2.05a]$ gcc --version
gcc (GCC) 3.2.2 20030313 (Red Hat Linux 3.2.2-10)
Copyright (C) 2002 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.
其他的环境也设置好了,这是什么原因啊?
帮我看看吧!先谢谢了!!! |
|