"root-config --glibs" output does not match files in libs/ directory

It looks like a solution to this might be in the last post at Problems compiling root with gcc 9.1.