configure: Disable static by default, and add win32 DLL support
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 6 Nov 2014 10:46:51 +0000 (16:16 +0530)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Sat, 28 Mar 2015 00:00:00 +0000 (20:00 -0400)
https://bugs.freedesktop.org/show_bug.cgi?id=85962

configure.ac
gst/Makefile.am

index 3b4e105..96c92de 100644 (file)
@@ -55,7 +55,8 @@ AM_SILENT_RULES([yes])
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_CC
 AM_PROG_AR
-LT_INIT
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen win32-dll disable-static])
 
 # Check Operating System
 AC_MSG_CHECKING([operating system])
index 0cf811d..5f9a386 100644 (file)
@@ -33,7 +33,7 @@ libgstnice_la_SOURCES = \
 
 libgstnice_la_LIBADD =         $(COMMON_LIBADD) $(GST_LIBS)
 
-libgstnice_la_LDFLAGS = -module -avoid-version
+libgstnice_la_LDFLAGS = -module -avoid-version -no-undefined
 endif
 
 
@@ -52,5 +52,5 @@ libgstnice010_la_SOURCES = \
 
 libgstnice010_la_LIBADD = $(COMMON_LIBADD) $(GST010_LIBS)
 
-libgstnice010_la_LDFLAGS = -module -avoid-version
+libgstnice010_la_LDFLAGS = -module -avoid-version -no-undefined
 endif