Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-30 00:22:10 +00:00
parent 0b27d7dda4
commit 3495c8ec38
111 changed files with 496 additions and 123 deletions

View File

@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
- Compile a source file into a `libtool` object:
`libtool --mode=compile gcc {{[-c|--compile]}} {{path/to/source.c}} {{[-o|--output]}} {{path/to/source.lo}}`
`libtool {{[c|compile]}} gcc {{[-c|--compile]}} {{path/to/source.c}} {{[-o|--output]}} {{path/to/source.lo}}`
- Create a library or an executable:
`libtool --mode=link gcc {{[-o|--output]}} {{path/to/library.lo}} {{path/to/source.lo}}`
`libtool {{[l|link]}} gcc {{[-o|--output]}} {{path/to/library.lo}} {{path/to/source.lo}}`
- Automatically set the library path so that another program can use uninstalled `libtool` generated programs or libraries:
`libtool --mode=execute gdb {{path/to/program}}`
`libtool {{[e|execute]}} gdb {{path/to/program}}`
- Install a shared library:
`libtool --mode=install cp {{path/to/library.la}} {{path/to/installation_directory}}`
`libtool {{[i|install]}} cp {{path/to/library.la}} {{path/to/installation_directory}}`
- Complete the installation of `libtool` libraries on the system:
`libtool --mode=finish {{path/to/installation_dir}}`
`libtool {{[f|finish]}} {{path/to/installation_dir}}`
- Delete installed libraries or executables:
`libtool --mode=uninstall {{path/to/installed_library.la}}`
`libtool {{[u|uninstall]}} {{path/to/installed_library.la}}`
- Delete uninstalled libraries or executables:
`libtool --mode=clean rm {{path/to/source.lo}} {{path/to/library.la}}`
`libtool {{[cl|clean]}} rm {{path/to/source.lo}} {{path/to/library.la}}`