ELF_OTHER_LIBS usually contains local search dirs (-L ../..), but it was
added in link command after system search dirs from LDFLAGS.
Libraries and executables were linked with the system libraries if present,
and possibly using static archives instead of shared libraries.
It could also make final executable link to fail when shared
libraries are enabled: if libext2fs.so is linked with a static
libcom_err.a from system, build system would attempt to link without
This fixes the issue by moving ELF_OTHER_LIBS before LDFLAGS in the