b0ad45f
Description: Allow wx.html2 to be packaged separately
b0ad45f
 Installing it drags in the "libwxgtk-webview3.0-0v5" runtime package which
b0ad45f
 drags in rather a lot of packages.
b0ad45f
Author: Scott Talbert <swt@techie.net>
b0ad45f
Bug-Debian: http://bugs.debian.org/821934
b0ad45f
Forwarded: not-needed
b0ad45f
Last-Update: 2016-04-30
b0ad45f
b0ad45f
diff -up wxpython3.0-3.0.2.0+dfsg/wxPython/config.py.webview wxpython3.0-3.0.2.0+dfsg/wxPython/config.py
b0ad45f
--- wxpython3.0-3.0.2.0+dfsg/wxPython/config.py.webview	2016-04-29 00:06:26.000000000 -0400
b0ad45f
+++ wxpython3.0-3.0.2.0+dfsg/wxPython/config.py	2016-04-29 20:14:59.830690131 -0400
b0ad45f
@@ -660,7 +660,10 @@ def adjustLFLAGS(lflags, libdirs, libs):
b0ad45f
         if flag[:2] == '-L':
b0ad45f
             libdirs.append(flag[2:])
b0ad45f
         elif flag[:2] == '-l':
b0ad45f
-            libs.append(flag[2:])
b0ad45f
+            # Remove 'webview' from the default libs so we don't always link
b0ad45f
+            # with it.  It gets added specifically for html2 elsewhere.
b0ad45f
+            if flag[2:] != makeLibName('webview')[0]:
b0ad45f
+                libs.append(flag[2:])
b0ad45f
         else:
b0ad45f
             newLFLAGS.append(flag)
b0ad45f
     return removeDuplicates(newLFLAGS)