pkg-config can be used in your extconf.rb to properly detect need libraries for compiling Ruby native extensions
conda install conda-forge::rb-pkg-config
conda install conda-forge/label/cf202003::rb-pkg-config