It's actually not correct according to the FHS; /usr/share
is quite explicitly for "architecture-independent data". /usr/lib
is the arch-dependent equivalent, and that's probably what you want (/usr/lib/libname
).
See http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA for details.