with non-installed tests the build would get an empty $(reftestdir) which would screw up the LDFLAGS. An rpath seems to be required to make libtool build a shared object. Without an rpath line, it only builds a static object. https://bugzilla.gnome.org/show_bug.cgi?id=735401