Created attachment 18540 [details]
Patch to fix some issues when building with slibtool.
When trying to build slurm with slibtool (https://dev.midipix.org/cross/slibtool) it fails for multiple reasons.
One reason is that the Makefile.am files use the .o files directly instead of through the $(LIBTOOL) implemenation sometimes in addition of the .la files. This is not needed and breaks the build with slibtool. I have attached a patch that fixes most occurrences of the issue and a full build log showing the issue.
rdlibtool: link: clang .libs/eio.o .libs/io_hdr.o .libs/libeio.o -g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -o
clang-11: error: argument to '-o' is missing (expected 1 value)
clang-11: error: no such file or directory: '.libs/libeio.o'
rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1909.
make: *** [Makefile:1326: libeio.o] Error 2
Note: This may miss some occurrences of this issue hiding behind features that are not enabled in my build and this does not fix all issues with slibtool yet.
Also see this downstream issue: https://bugs.gentoo.org/775614
Created attachment 18541 [details]
Full build log.
Looking through some of these - there was some significant refactoring of the libslurm library handling ahead of the 21.08 release, and this patch is no longer directly relevant.