The installed /usr/bin/qd-config file doesn't work because of a syntax error. One needs the following patch: 17c17 < CXXFLAGS="-I$includedir --- > CXXFLAGS="-I$includedir"
commit 9689649680d89df42b039597310500fa99f2f56d Author: Andrey Grozin <grozin@gentoo.org> Date: Sun Nov 27 21:22:37 2016 +0700 sci-libs/qd: fixing somebody's typo in qd-2.3.17-fix-build-system.patch Bug: 600784 Package-Manager: portage-2.3.0