Static linking ============== libtag-dev includes libtag.a and libtag_c.a for linking into executables. They are built without -fPIC, retaining Debian's default PIE support, and are not intended for inclusion in shared libraries or loadable modules. Use pkg-config --static --libs taglib (C++) or taglib_c (C) to obtain the required dependencies. The --static option includes private dependencies; it does not itself make the linker choose static libraries. Select the TagLib archives explicitly when both shared and static libraries exist. The installed CMake targets continue to select the shared libraries.