Introducing LDADD_FOR_TESTS_KLUDGE to enable 'make check' with LD_LIBRARY_PATH
AbandonedPublic

Authored by gniibe on Thu, Jan 10, 2:28 AM.

Details

Reviewers
None
Summary

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.

Test Plan

Build with LD_LIBRARY_PATH (for old libraries).

Diff Detail

Repository
rE libgpg-error
Lint
Lint Skipped
Unit
Unit Tests Skipped