With GNU ld having build-time configuration of --enable-new-dtags, make check with LD_LIBRARY_PATH may fail.
This change (of libgpg-error) can provide a workaround for the particular case.
In my opinion, it's bad practice for basic tools like GNU toolchain to let each application have such workaround.
It is the best if nothing required like this patch. To express that, I name it LDADD_FOR_TESTS_KLUDGE.
While this patch itself is for libgpg-error, it is intended to be applied to other libraries as well.