Avoid trailing space with wx-config --c[xx]flags

When WXCONFIG_C[XX]FLAGS is empty, this ends up being:
`echo $._cppflags ""`
which results in a trailing space being printed. This is a minor issue
but it may confuse a tool trying to parse the output of wx-config.

Removing the quotes would instead give `echo $._cppflags `, which does
not print a trailing space.

See #24812.

(cherry picked from commit a5e4409dfc)
This commit is contained in:
Tobiasz Laskowski
2024-09-20 17:55:36 +02:00
committed by Vadim Zeitlin
parent 568bea4287
commit 9ff8d10132
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -251,6 +251,10 @@ Changes in behaviour which may result in build errors
3.2.7: (released 2025-??-??)
----------------------------
All:
- Avoid trailing space in `wx-config --c[xx]flags` (Tobiasz Laskowski, #24812).
wxOSX:
- Fix missing mouse events in scrolled windows under macOS 14+ (#24790, #24809).
+2 -2
View File
@@ -1293,8 +1293,8 @@ _cppflags=`echo "-I${libdir}/wx/include/@TOOLCHAIN_FULLNAME@" $_include_cppflags
# now without further ado, we can answer these too.
[ -z "$output_option_cppflags" ] || echo $_cppflags
[ -z "$output_option_cflags" ] || echo $_cppflags "@WXCONFIG_CFLAGS@"
[ -z "$output_option_cxxflags" ] || echo $_cppflags "@WXCONFIG_CXXFLAGS@"
[ -z "$output_option_cflags" ] || echo $_cppflags @WXCONFIG_CFLAGS@
[ -z "$output_option_cxxflags" ] || echo $_cppflags @WXCONFIG_CXXFLAGS@
[ -z "$output_option_gl_libs" ] || echo `lib_flags_for gl`
[ -z "$output_option_linkdeps" ] || echo $link_deps