make 选项

--with-sysroot=$LFS
For cross compilation, this tells the build system to look in $LFS for the target system libraries as needed.

--with-lib-path=/tools/lib
This specifies which library path the linker should be configured to use.

--target=$LFS_TGT
Because the machine description in the LFS_TGT variable is slightly different than the value returned by the
config.guess script, this switch will tell the configure script to adjust Binutil's build system for building a cross
linker.

--disable-werror
This prevents the build from stopping in the event that there are warnings from the host's compiler.

Using --disable-shared means that the libgcc_eh.a file isn't created and installed. The Glibc package
depends on this library as it uses -lgcc_eh within its build system. This dependency can be satisfied by creating a
symlink to libgcc.a, since that file will end up containing the objects normally contained in libgcc_eh.a:

 

-C ld clean
This tells the make program to remove all compiled files in the ld subdirectory.

make LDFLAGS=-pthread

 

...

 

 

 

 

转载于:https://www.cnblogs.com/kwingmei/p/3265580.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值