From 67bffb580d05ff3bc75474ae9f612d692cb064b2 Mon Sep 17 00:00:00 2001 From: Suraj Devatha <42767118+surajdm123@users.noreply.github.com> Date: Sun, 29 Jun 2025 14:13:59 -0700 Subject: [PATCH] libtool: remove redundant mode (#16988) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages/linux/libtool.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/linux/libtool.md b/pages/linux/libtool.md index 8dccacb1bf..59ad886cf0 100644 --- a/pages/linux/libtool.md +++ b/pages/linux/libtool.md @@ -5,28 +5,28 @@ - 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}}`