butm: Remove duplicate library arguments

The test_ftm and butm_test programs link against the libbutm.a library.
Currently those targets depend on libbutm.a but the link command also
includes the ${TOP_LIBDIR}/libbutm.a which is made by the install
target.

This can lead to errors during a parallel build:

    gcc ... -o test_ftm test_ftm.o libbutm.a ... <top_dir>/lib/libbutm.a ...
    gcc: error: <top_dir>/lib/libbutm.a: No such file or directory

Remove the ${TOP_LIBDIR}/libbutm.a from the LIBS macro, so the test_ftm
and butm_test programs are built from the libbutm.a in the local
directory, which those programs depend on.

Change-Id: I695b0bbff4053804c514b361dca4da49e623a2a3
Reviewed-on: https://gerrit.openafs.org/15781
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Michael Meffie 2024-07-08 09:27:15 -04:00
parent c3e8d70314
commit af788963a9

View File

@ -16,7 +16,6 @@ LIBS=${TOP_LIBDIR}/libbubasics.a \
${TOP_LIBDIR}/liblwp.a \
${TOP_LIBDIR}/libusd.a \
${TOP_LIBDIR}/libafscom_err.a \
${TOP_LIBDIR}/libbutm.a \
${TOP_LIBDIR}/libafscom_err.a \
${TOP_LIBDIR}/util.a \
$(TOP_LIBDIR)/libopr.a \