Skip to content

Commit

Permalink
BUILD: Use compiler given by wx-config to build GUI tools
Browse files Browse the repository at this point in the history
This is needed to make sure we get a working executable. For example
on OS X 10.9 without this we get an executable that crashes before entering
main() because it links against libc++ but wx-widgets is built against
libstdc++. See bugs #15589 and #15618 on wx-widgets bug tracker.
  • Loading branch information
criezy committed Mar 12, 2014
1 parent 49d67b9 commit 675c4db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure
Expand Up @@ -1517,6 +1517,9 @@ fi
if test "$_wxwidgets" = yes ; then
_wxincludes="`$_wxconfig --prefix="$_wxpath" --cflags`"
_wxlibs="`$_wxconfig --prefix="$_wxpath" --libs`"
# Use the compiler specified by wx-config. This is needed on some systems to get a working executable.
CXX="`$_wxconfig --cxx`"
LD=$CXX

echo_n "Checking for wxwidgets gui dev component... "
has_wx_gui_dev=no
Expand Down

0 comments on commit 675c4db

Please sign in to comment.