ar: add link

manned-org
marchersimon 2021-03-31 12:10:38 +02:00 committed by Starbeamrainbowlabs
parent be27e77a15
commit bc1219f3c9
4 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,7 @@
# ar
> Crea, modifica ed estrai da archivi (.a, .so, .o).
> Maggiori informazioni: <https://man.archlinux.org/man/ar.1>.
- Estrai tutti i membri da un archivio:

View File

@ -1,6 +1,7 @@
# ar
> 아카이브로부터 생성, 수정, 추출 (.a, .so, .o).
> 더 많은 정보: <https://man.archlinux.org/man/ar.1>.
- 보관소로부터 모든 멤버를 추출하기:

View File

@ -1,6 +1,7 @@
# ar
> 创建,修改,提取库文件 (.a, .so, .o).
> 更多信息: <https://man.archlinux.org/man/ar.1>.
- 从库文件中提取全部成员:

View File

@ -1,23 +1,24 @@
# ar
> Create, modify, and extract from archives (.a, .so, .o).
> More information: <https://man.archlinux.org/man/ar.1>.
- Extract all members from an archive:
`ar -x {{libfoo.a}}`
`ar -x {{path/to/archive.a}}`
- List the members of an archive:
`ar -t {{libfoo.a}}`
`ar -t {{path/to/archive.a}}`
- Replace or add files to an archive:
`ar -r {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`
`ar -r {{path/to/archive.a}} {{path/to/file1.o}} {{path/to/file2.o}}`
- Insert an object file index (equivalent to using `ranlib`):
`ar -s {{libfoo.a}}`
`ar -s {{path/to/archive.a}}`
- Create an archive with files and an accompanying object file index:
`ar -rs {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`
`ar -rs {{path/to/archive.a}} {{path/to/file1.o}} {{path/to/file2.o}}`