lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] PATCH: disable the of system libraries when building wx


From: Vadim Zeitlin
Subject: [lmi] PATCH: disable the of system libraries when building wx
Date: Tue, 21 Jul 2020 03:06:32 +0200

 Hello,

 I just lost quite some time on debugging a weird build problem which
turned out to be due to wx configure picking up the system libtiff version
when cross-compiling for MSW from Linux. Of course, it really shouldn't
have done this in the first place, and I hope to fix this in wx itself
later, but for now I'd like to propose the following simple patch (which I
could also push myself if you're fine with it):

---------------------------------- >8 --------------------------------------
commit 82c1165c562e3f08831809d9f70df984af8b958c
Author: Vadim Zeitlin <vadim AT tt-solutions DOT com>
Date:   2020-07-21 02:21:20 +0200

    Disable use of all system libraries when building wxWidgets

    We don't want to use any system libraries, not only Expat, linpng and
    zlib ones.

diff --git a/install_wx.sh b/install_wx.sh
index 5135e3a30..84b2dd838 100755
--- a/install_wx.sh
+++ b/install_wx.sh
@@ -115,6 +115,7 @@ config_options="
   --disable-ribbon
   --disable-richtext
   --disable-stc
+  --disable-sys-libs
   --disable-webview
   --enable-monolithic
   --enable-option-checking
@@ -122,9 +123,6 @@ config_options="
   --enable-stl
   --enable-vendor=$vendor
   --with-cxx=11
-  --with-expat=builtin
-  --with-libpng=builtin
-  --with-zlib=builtin
   --without-opengl
   --without-subdirs
   CPPFLAGS=-I$prefix/include
---------------------------------- >8 --------------------------------------

 This ensures that no system libraries will be picked up (even if other
ones are added in the future), which is exactly what we want here.

 Thanks in advance,
VZ

Attachment: pgp_2k40J4yPT.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]