coreutils版本coreutils-8.20
configure參數爲:
./configure --prefix=/mnt/work/sdk/coreutils
make時,出錯:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_mem_cd_iconv in libcoreutils.a(striconv.o)
_str_cd_iconv in libcoreutils.a(striconv.o)
(maybe
you meant: _str_iconv, _mem_cd_iconv , _xstr_cd_iconv , _xstr_iconv
, _str_cd_iconv , _xmem_cd_iconv )
"_iconv_close", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
"_iconv_open", referenced from:
_str_iconv in libcoreutils.a(striconv.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [src/factor] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
看上去是有一個庫找不到了。make distclean清空目錄,重新configure
./configure --prefix=/mnt/work/sdk/coreutils
--cache-file=config.cache
--enable-no-install-program=kill,uptime
--enable-install-program=hostname LDFLAGS="-liconv"
其實主要目的是加LDFLAGS,別的都是從LFS腳本里拷着用的。
然後,順利的編過了。