Changed Linux build to use 16-bit wide chars, to fix issue #5132

This commit is contained in:
Martin Juhl
2024-07-30 13:10:35 +02:00
parent 33f903355a
commit 37268a7517
6 changed files with 30 additions and 0 deletions

5
build
View File

@@ -9,6 +9,11 @@ if [ "$1" == "32" ]; then
opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"
fi
# Makes Linux use 16-bit wide chars instead of 32-bit
CFLAGS="${CFLAGS} -fshort-wchar"
CXXFLAGS="${CXXFLAGS} -fshort-wchar"
export CCFLAGS CXXFLAGS
# Jonathan C dev hack: refer to LNKDOS16 in /usr/src/doslib
doslib=""
if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi