The GNU Binutils are a collection of binary tools. The main ones are:
- ld - the GNU linker.
- as - the GNU assembler
這個 library 也是只有 compile 過程會使用到 , 不過這個 library 已經和 Target 有先關聯了 !
A. 先執行 configure .
AR=ar AS=as ../$(SRC_VERSION)/configure \
--prefix=$(PREFIX)/$(TOOLCHAIN_DIR) \
--host=$(CLFS_HOST) --target=$(CLFS_TARGET) \
--with-sysroot=$(SYSROOT_PATH) \
--disable-werror
其中 --disable-werror 設定是讓 warning 產生時可以繼續 , 不要有 warning 就停止 .
因為這時候的AS 還沒產生(Target 要用的 ) 所以要指定AS 先用 Host 平台的.
B. make & make install
沒有留言:
張貼留言