.a
files are just archive of .o
object files. You need to just extract the files from the archive and package them as a shared object (.so
).
ar -x myarchive.a
gcc -shared
-Wl,-soname,mysharedlib.so*.o -o mysharedlib.so
.a
files are just archive of .o
object files. You need to just extract the files from the archive and package them as a shared object (.so
).
ar -x myarchive.a
gcc -shared
-Wl,-soname,mysharedlib.so*.o -o mysharedlib.so
pgrep -l [pattern]
pgrep -l work
output
217 kworker/u:3
218 kworker/u:4
219 kworker/u:5
863 NetworkManager
900 ./a.out work
pkill [pattern]