最終更新:2021-01-24 (日) 05:04:42 (1159d)
ar
Top / ar
アーカイブファイル(.a)の作成、変更、および展開
オプション
- GNU arの場合、操作コードと修飾子の順番を任意に行うことができます。
更新
- ar rv <.a> <.o>
メモ
- crus
c アーカイブの作成(do not warn if the library had to be created) r replace existing or insert new file(s) into the archive u 最新のファイルのみを追加(deprecated) s act as ranlib (アーカイブのインデックスを追加または更新)
中身の確認
- ar -t hoge.a
展開
- ar -x <.a> <.o>
help
Usage: ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file... ar -M [<mri-script] commands: d - delete file(s) from the archive m[ab] - move file(s) in the archive p - print file(s) found in the archive q[f] - quick append file(s) to the archive r[ab][f][u] - replace existing or insert new file(s) into the archive s - act as ranlib t - display contents of archive x[o] - extract file(s) from the archive command specific modifiers: [a] - put file(s) after [member-name] [b] - put file(s) before [member-name] (same as [i]) [D] - use zero for timestamps and uids/gids (default) [U] - use actual timestamps and uids/gids [N] - use instance [count] of name [f] - truncate inserted file names [P] - use full path names when matching [o] - preserve original dates [u] - only replace files that are newer than current archive contents generic modifiers: [c] - do not warn if the library had to be created [s] - create an archive index (cf. ranlib) [S] - do not build a symbol table [T] - make a thin archive [v] - be verbose [V] - display the version number @<file> - read options from <file> --target=BFDNAME - specify the target object format as BFDNAME optional: --plugin <p> - load the specified plugin emulation options: No emulation specific options