Disable static libraries
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Aug 2014 21:59:10 +0000 (07:59 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 24 Aug 2014 21:57:56 +0000 (07:57 +1000)
Our static library leaks symbols like crazy, some of which are likely
conflicts with users of this library (log_msg, open_restricted, ...).

Disale static linking by default so we don't have to spend time debugging
this.

Related to:
https://bugs.freedesktop.org/show_bug.cgi?id=82292
https://bugs.freedesktop.org/show_bug.cgi?id=82785

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/Makefile.am

index 76fe4c9..44e73d3 100644 (file)
@@ -34,7 +34,7 @@ libinput_la_CFLAGS = -I$(top_srcdir)/include \
                     $(LIBEVDEV_CFLAGS) \
                     $(GCC_CFLAGS)
 
-libinput_la_LDFLAGS = -version-info $(LIBINPUT_LT_VERSION)
+libinput_la_LDFLAGS = -version-info $(LIBINPUT_LT_VERSION) -shared
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libinput.pc