diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-12-09 15:30:54 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-12-09 15:30:54 +0200 |
commit | 32c64603c3a0975d55775d00da1e18c66ea77f62 (patch) | |
tree | ebdf440f44e65027f3f005916cae19deee68f14c /recipes/libdvdnav | |
parent | c28dd9fde8796b8bc0146f21014533cea3c44509 (diff) |
libdvdnav/read: Fix compilation on Windows and actually create DLLs instead of just static libraries
Diffstat (limited to 'recipes/libdvdnav')
-rw-r--r-- | recipes/libdvdnav/0001-Fix-linking-in-windows-compilation.patch | 4 | ||||
-rw-r--r-- | recipes/libdvdnav/0002-Build-DLLs-on-Windows.patch | 39 |
2 files changed, 41 insertions, 2 deletions
diff --git a/recipes/libdvdnav/0001-Fix-linking-in-windows-compilation.patch b/recipes/libdvdnav/0001-Fix-linking-in-windows-compilation.patch index c669cd67..a745c485 100644 --- a/recipes/libdvdnav/0001-Fix-linking-in-windows-compilation.patch +++ b/recipes/libdvdnav/0001-Fix-linking-in-windows-compilation.patch @@ -1,7 +1,7 @@ -From f7002dc74731894680eae4d4e2d33fa1588ea184 Mon Sep 17 00:00:00 2001 +From 72c9cf274021a795ee54a8da308eb249126e3b5f Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey <ylatuya@gmail.com> Date: Wed, 29 Feb 2012 18:12:14 +0100 -Subject: [PATCH] Fix linking in windows compilation +Subject: [PATCH 1/2] Fix linking in windows compilation --- Makefile.am | 2 +- diff --git a/recipes/libdvdnav/0002-Build-DLLs-on-Windows.patch b/recipes/libdvdnav/0002-Build-DLLs-on-Windows.patch new file mode 100644 index 00000000..c5c3e03f --- /dev/null +++ b/recipes/libdvdnav/0002-Build-DLLs-on-Windows.patch @@ -0,0 +1,39 @@ +From d8917e0719ac5cbb0f29593463e06138c3bead4c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> +Date: Fri, 9 Dec 2016 15:27:14 +0200 +Subject: [PATCH 2/2] Build DLLs on Windows + +--- + Makefile.am | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 555df61..1ebb2d2 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -34,7 +34,7 @@ libdvdnav_la_SOURCES = \ + src/vm/vmcmd.c \ + src/vm/vmcmd.h + +-libdvdnav_la_LDFLAGS = \ ++libdvdnav_la_LDFLAGS = -no-undefined \ + -version-info $(DVDNAV_LT_CURRENT):$(DVDNAV_LT_REVISION):$(DVDNAV_LT_AGE) \ + -export-symbols-regex "^dvdnav" $(DVDREAD_LIBS) + libdvdnav_la_LIBADD = $(THREAD_LIBS) $(DVDREAD_LIBS) +diff --git a/configure.ac b/configure.ac +index 3eff01a..d64fdfc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,7 +17,7 @@ AC_CANONICAL_HOST + AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2 no-dist-gzip subdir-objects]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-LT_INIT ++LT_INIT([win32-dll]) + + AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_MACRO_DIR([m4]) +-- +2.11.0 + |