Skip to content

hw/dmx/config: Link directly with libdmxconfig.a

Matt Turner requested to merge mattst88/xserver:dmx into server-1.20-branch

When building xserver with slibtool (https://dev.midipix.org/cross/slibtool) the build will fail.

/usr/bin/ld: cannot find -ldmxconfig

This is because xserver creates libdmxconfig.a internally and then links with the linker flag -ldmxconfig. However according to automake documentation the -lfoo linker flags should only be used for external dependencies and all internal libraries should be linked with the libtool archive file (.la) or the static archive (.a) when the former is not available.

GNU libtool is far more permissive and happens to silently obscure this issue while slibtool fails because it instead sees '-L./.libs -ldmxconfig'.

Signed-off-by: Matt Turner mattst88@gmail.com (cherry picked from commit 2531ee02)

Merge request reports