I want to create a simple library and after compilation and ar command I can get resulting .a file.
Now I want to add this file as a static library and use it in terminal, I dont know if its possible. but idea is from other library named Ctypes.sh on github. that library can be used to make syscalls from terminal or bash terminal.
I like to know how I can add my mylib.a as static libary and make it usable from terminal.
the library is simple I just want to invoke a few syscalls in linux from terminal.
I also looked into the code of ctypes.sh so my library is also be used to make some syscalls.
the reference I used above is here https://github.com/taviso/ctypes.sh/wiki
bash
callsdlopen
onyour_builtin.so
when adding the builtin and then executes some function from the shared library. Here it is. You can even compile your.o
into.so
andenable
it from bash as a builtin itself. Please explain what you exactly mean by "make the static library usable in terminal". "Usable" - in what way?