mirror of
https://github.com/openharmony/prebuilts_lite_sysroot.git
synced 2026-07-19 19:13:31 -04:00
fix: 修复文档链接失效问题
close #I452A7 Signed-off-by: Haryslee <lihao189@huawei.com> Change-Id: I4c98693485d790a3345ca6261e25161d5f70bfec
This commit is contained in:
@@ -33,15 +33,13 @@ When bugs in the musl library are fixed or the version is updated, you need to c
|
||||
|
||||
## Usage<a name="section68313135353"></a>
|
||||
|
||||
- Add the bin directory to the PATH environment variable. For details about how to set up the compilation environment, see [Setting Up the Hi3518 Development Environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/setting-up-the-hi3518-development-environment.md) and [Setting Up the Hi3516 Development Environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/setting-up-the-hi3516-development-environment.md).
|
||||
- Add the bin directory to the PATH environment variable. For details about how to set up the compilation environment, see [Quick start](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/Readme-EN.md).
|
||||
- The following is a sample script for compiling the **helloworld.c** program:
|
||||
|
||||
```
|
||||
clang -o helloworld helloworld.c -target arm-liteos --sysroot=/my_ohos_root_path/prebuilts/lite/sysroot/
|
||||
```
|
||||
|
||||
The compiler directory is **\~/llvm**.
|
||||
|
||||
## Repositories Involved<a name="section1371113476307"></a>
|
||||
|
||||
[Kernel subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/kernel.md)
|
||||
|
||||
+1
-3
@@ -33,15 +33,13 @@ musl库bug修复或者新版本更新时,需要重新编译构建新的libc库
|
||||
|
||||
## 使用说明<a name="section68313135353"></a>
|
||||
|
||||
- 将clang编译器bin目录设置到环境变量中,编译环境的搭建可以参考([for HI3518EV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/%E6%90%AD%E5%BB%BA%E7%8E%AF%E5%A2%83.md), [for HI3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/Hi3516%E6%90%AD%E5%BB%BA%E7%8E%AF%E5%A2%83.md))。
|
||||
- 将clang编译器bin目录设置到环境变量中,编译环境的搭建可以参考[快速入门](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/Readme-CN.md)。
|
||||
- 编译用户程序helloworld.c示例如下:
|
||||
|
||||
```
|
||||
clang -o helloworld helloworld.c -target arm-liteos --sysroot=/my_ohos_root_path/prebuilts/lite/sysroot/
|
||||
```
|
||||
|
||||
其中,编译器目录为\~/llvm。
|
||||
|
||||
## 相关仓<a name="section1371113476307"></a>
|
||||
|
||||
[内核子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
|
||||
|
||||
Reference in New Issue
Block a user