I have compiled a certain library, however it didn't generate a lib<libname>.a file. It generated <libname>.a file. Is there a way to tell the compiler that the lib is not using lib prefix?
Printable View
I have compiled a certain library, however it didn't generate a lib<libname>.a file. It generated <libname>.a file. Is there a way to tell the compiler that the lib is not using lib prefix?
Is it too hard to rename it, or fix the build process?
Or perhaps create a symbolic link to it?
Are you using a makefile or just plain command line compilation?
Either way it'd the same switch "-o <libxyz.a>" for naming the generated output file.
I think I have already solved it. Instead of -l<libname> I just did objs/<libname>.a and it seemed to work.