Install libqtah.so to dynlibdir as well
Hi!
Now qtah
installs its C++ library, libqtah.so
to libdir
of Haskell package distribution. This leads to compile error when using Template Haskell with qtah
(specifically, when using makeLenses
with record containing qtah
types):
<command line>: can't load .so/.DLL for: .../.stack-work/install/x86_64-linux-tinfo6-nopie/lts-9.1/8.0.2/lib/x86_64-linux-ghc-8.0.2/libHSqtah-qt5-0.4.0-96sVu3zqPJeHUrFBB2z7zl-ghc8.0.2.so (libqtah.so.0: cannot open shared object file: No such file or directory)
Apparently, this is because GHC looks for shared objects in dynlibdir
. Unfortunately, moving libqtah.so
to dynlibdir
of qtah-cpp
does not suffice, because now we'd get error when Cabal configures qtah
package -- it seems to look for extra-libraries
in libdir
, not in dynlibdir
.
So, I propose an easy fix -- just install it into both locations.