[vlc-devel] [PATCH] Fix linking of Qt4/MKV modules on OpenBSD

Brad Smith brad at comstyle.com
Mon Jan 30 20:41:23 CET 2012


The following patch fixes linking of the Qt4 and MKV modules on OpenBSD
as linking with libstdc++ is required.


diff --git a/configure.ac b/configure.ac
index e57d059..3c94d3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2123,6 +2123,9 @@ if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then
                 AC_CHECK_LIB(ebml, main, [
                   VLC_ADD_PLUGIN([mkv])
                   VLC_ADD_LIBS([mkv],[-lmatroska -lebml])
+                  AS_IF([test "${SYS}" = "openbsd"], [
+                      VLC_ADD_LIBS([mkv],[-lstdc++])
+                  ])
                 ])
               ])
             ], [
@@ -3584,6 +3587,9 @@ AS_IF([test "${enable_qt4}" != "no"], [
     AS_IF([test "${SYS}" = "darwin" ],[
          VLC_ADD_LIBS([qt4], [-Wl,-framework,Cocoa])
     ])
+    AS_IF([test "${SYS}" = "openbsd"], [
+         VLC_ADD_LIBS([qt4],[-lstdc++])
+    ])
     AC_PATH_PROGS(MOC, [moc-qt4 moc], moc,`eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin)
     AC_PATH_PROG(RCC, rcc, rcc,`eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin)
     AC_PATH_PROGS(UIC, [uic-qt4 uic], uic,`eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin)

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the vlc-devel mailing list