Generate static files from a source RPM
I'm still new to Linux, so I apologize if this is actually straightforward, but I can't seem to find the answer. Given a .src.rpm file, how can I generate .a (static) files from it? The .src file only has instructions (as far as I can tell in the .spec file) to generate .so files, but I need the .a files.
Reason: Specifically, I need librpm.a from rpm-4.8.0-12.el6.src.rpm (that's the version of rpm that's installed on my system). I'm compiling with gcc -static so it will pack all the necessary libraries without relying on other systems to already have the library available. However, it is failing because I don't have librpm.a; I only have librpm.so. I want to build librpm.a, but I can't seem to figure it out.
Thanks.
|