Created attachment 21069 [details] [review] no-undefined patch I'm attaching a patch which fixes the build of libxklavier-3.8 for Cygwin. * libxklavier/Makefile.am (libxklavier_la_LDFLAGS): Add -no-undefined for Cygwin. (libxklavier_la_LIBADD): Move link libraries here. * tests/Makefile.am (LDADD): Link libraries go in LDADD, not LDFLAGS.
LDADD and LIBADD is ok, thanks. Why do you need -no-undefined?
On Cygwin and MinGW, libraries must have all symbols resolved at link time. libtool therefore requires that you indicate that this has been handled by passing -no-undefined. Without this, libtool will only create a static library on these platforms, since there are a few legitimate cases where libraries require a symbol to be provided by the dependent program (e.g. libxcb-wm, KDE3 libkscreensaver). As long as -no-undefined is true (which it is), this flag doesn't affect other platforms.
Ok, committed. Thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.