Restore -DWXUSINGDLL in wx-config output
This has been broken by the wrong test added in 13b0981eb9
(Get rid of
WXCONFIG_ONLY_CPPFLAGS variable in configure, 2020-02-02), which was
always false because it tested literal "SHARED" instead of the value of
the variable with this name.
This went unnoticed because WXUSINGDLL is not really necessary anyhow
under Unix, but it broke the build of any project building MSW binaries
using wx-config.
This commit is contained in:
parent
83f1df7b6b
commit
b762d2fb0f
2
configure
vendored
2
configure
vendored
@ -37994,7 +37994,7 @@ CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
|
||||
OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
|
||||
OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
|
||||
|
||||
if test "SHARED" = 1; then
|
||||
if test "$SHARED" = 1; then
|
||||
WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DWXUSINGDLL"
|
||||
fi
|
||||
|
||||
|
@ -8105,7 +8105,7 @@ OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
|
||||
|
||||
dnl now that we added WXCONFIG_CPPFLAGS to CPPFLAGS we can add the wx-config
|
||||
dnl only stuff to it
|
||||
if test "SHARED" = 1; then
|
||||
if test "$SHARED" = 1; then
|
||||
WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DWXUSINGDLL"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user