]> git.draconx.ca Git - dxcommon.git/commit
fix-ltdl: Fix LIBOBJ mangling to work with automake-1.16.
authorNick Bowler <nbowler@draconx.ca>
Sat, 26 Feb 2022 22:55:30 +0000 (17:55 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 26 Feb 2022 23:03:44 +0000 (18:03 -0500)
commit8d922a2f63801c78bfebc41612cb57839f5367b8
tree4e8c2febce66b96f90c1df2c47d8085c9b47a166
parent9d379a9237fe1af3fa94a35835356cad0adaf7dd
fix-ltdl: Fix LIBOBJ mangling to work with automake-1.16.

Apparently automake 1.16 changed how object files in a subdirectory are
named when using subdir-objects.  As the generated rules to copy compiled
objects to the ltdl_LTLIBOBJ substituted names, these rules are now failing
on current automake.

Fix this by explicitly setting a _SHORTNAME for the dummy libobj library,
which explicitly sets the name to use and thus it will be consistent
between different Automake versions.

Add new test cases to verify this behaviour.
scripts/fix-ltdl.pl
tests/macros.at
tests/scripts.at
testsuite.at