Article Directory
Nice notes seen
One of the entrances of the series blog
table of Contents
Miscellaneous
- Wl
Pass options as options for the linker. If the options contain commas, separate multiple options with commas. You can use this syntax to pass parameters to options. For example, -Wl, -Map, output.map passes -Map output.map to the linker. When using the GNU linker, you can also use `-Wl, -map = output, map to achieve the same effect.
- -rpath=dir
Add the directory to the runtime library search path. Used when linking ELF executable files with shared objects. All -rpath parameters are connected and passed to the runtime linker, which uses them to locate shared objects at runtime. When explicitly including the shared object required by the shared object in the link, also use the -rpath option;
* -rpath=/lib 等价于 -R/lib
* -WI,-rpath=xx 实际上也可以用ldconfig的命令代替
Where to link, what library to link
- Difference between CFLAGS and CXXFLAGS
- The difference between CFLAGS and LDFLAGS (what are the parameters)
One is to compile and the other is to link