增加 Makefile 环境变量设置说明.

Signed-off-by: rick.chan <chen.yang@yuzhen-iot.com>
This commit is contained in:
rick.chan 2022-06-22 15:13:55 +08:00
parent 2a0a3856fe
commit e83d01ebcb
2 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,8 @@ The linker uses the following search paths to locate required shared libraries:
If the required shared library is not found, the linker will issue a warning and continue with the link. If the required shared library is not found, the linker will issue a warning and continue with the link.
在 Makefile 中设置 LD_RUN_PATH/LD_LIBRARY_PATH 的话,需要将环境变量的设置写到具体的编译命令一行中,因为 Makefile 规则中的每一行都在其自己的 shell 实例中运行。
## 3. 外部参考资料 ## 3. 外部参考资料
1. [gcc警告选项汇总](https://blog.csdn.net/qq_17308321/article/details/79979514) 1. [gcc警告选项汇总](https://blog.csdn.net/qq_17308321/article/details/79979514)

View File

@ -1,5 +1,7 @@
# Makefile 简明语法 # Makefile 简明语法
**注意Makefile 规则中的每一行都在其自己的 shell 实例中运行。**
## 静态模式 ## 静态模式
静态模式可以更加容易地定义多目标的规则,可以让我们的规则变得更加的有弹性和灵活。我们还是先来看一下语法: 静态模式可以更加容易地定义多目标的规则,可以让我们的规则变得更加的有弹性和灵活。我们还是先来看一下语法: