diff options
author | Ryan Hill <rhill@gentoo.org> | 2016-02-21 03:33:15 -0600 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2016-04-13 20:28:55 -0600 |
commit | 0cac1248d35e67ae0b0119c1ec9799688ffd382d (patch) | |
tree | e4cf02d44a7236d45020e88fb1826b19fdb6e300 /eclass/wxwidgets.eclass | |
parent | wxwidgets.eclass: Change how we do wxwidgets, add gtk3 support. (diff) | |
download | gentoo-0cac1248d35e67ae0b0119c1ec9799688ffd382d.tar.gz gentoo-0cac1248d35e67ae0b0119c1ec9799688ffd382d.tar.bz2 gentoo-0cac1248d35e67ae0b0119c1ec9799688ffd382d.zip |
wxwidgets.eclass: Clarify debugging comment
It was potentially confusing that setting WX_DISABLE_DEBUG would
actually cause debugging to be enabled. Changed variable name to
WX_DISABLE_NDEBUG.
Diffstat (limited to 'eclass/wxwidgets.eclass')
-rw-r--r-- | eclass/wxwidgets.eclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass index 0e131d55a4c9..5bcc93c1f678 100644 --- a/eclass/wxwidgets.eclass +++ b/eclass/wxwidgets.eclass @@ -67,10 +67,10 @@ unset _wxconf # In wxGTK-2.9 and later it also controls the level of debugging output # from the libraries. In these versions debugging features are enabled # by default and need to be disabled at the package level. Because this -# causes many warning dialogs to regularly pop up we add -DNDEBUG to -# CPPFLAGS by default, unless your ebuild has a debug USE flag and it's -# enabled. If you don't like this behavior you can set WX_DISABLE_DEBUG -# to disable it. +# causes many warning dialogs to pop up during runtime we add -DNDEBUG to +# CPPFLAGS to disable debugging features (unless your ebuild has a debug +# USE flag and it's enabled). If you don't like this behavior you can set +# WX_DISABLE_NDEBUG to override it. # # See: http://docs.wxwidgets.org/trunk/overview_debugging.html @@ -83,13 +83,13 @@ setup-wxwidgets() { case "${WX_GTK_VER}" in 3.0-gtk3) wxtoolkit=gtk3 - if [[ -z ${WX_DISABLE_DEBUG} ]]; then + if [[ -z ${WX_DISABLE_NDEBUG} ]]; then use_if_iuse debug || append-cppflags -DNDEBUG fi ;; 2.9|3.0) wxtoolkit=gtk2 - if [[ -z ${WX_DISABLE_DEBUG} ]]; then + if [[ -z ${WX_DISABLE_NDEBUG} ]]; then use_if_iuse debug || append-cppflags -DNDEBUG fi ;; |