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" opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"
fi 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 # Jonathan C dev hack: refer to LNKDOS16 in /usr/src/doslib
doslib="" doslib=""
if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi

View File

@@ -9,6 +9,11 @@ if [ "$1" == "32" ]; then
opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu" opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"
fi 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 # Jonathan C dev hack: refer to LNKDOS16 in /usr/src/doslib
doslib= doslib=
if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi

View File

@@ -8,6 +8,11 @@ if [ "${1}" == "32" ]; then
shift shift
fi fi
# Makes Linux use 16-bit wide chars instead of 32-bit
CFLAGS="${CFLAGS} -fshort-wchar"
CXXFLAGS="${CXXFLAGS} -fshort-wchar"
export CCFLAGS CXXFLAGS
# I'm sick and tired of all the churn the three versions of autoconf # I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts # are causing in this repo. Stop committing the configure scripts
# and just autoregen. # and just autoregen.

View File

@@ -8,6 +8,11 @@ if [ "${1}" == "32" ]; then
shift shift
fi fi
# Makes Linux use 16-bit wide chars instead of 32-bit
CFLAGS="${CFLAGS} -fshort-wchar"
CXXFLAGS="${CXXFLAGS} -fshort-wchar"
export CCFLAGS CXXFLAGS
# I'm sick and tired of all the churn the three versions of autoconf # I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts # are causing in this repo. Stop committing the configure scripts
# and just autoregen. # and just autoregen.

View File

@@ -9,6 +9,11 @@ if [ "$1" == "32" ]; then
opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu" opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"
fi fi
# Makes Linux use 16-bit wide chars instead of 32-bit
CFLAGS="${CFLAGS} -fshort-wchar"
CXXFLAGS="${CXXFLAGS} -fshort-wchar"
export CCFLAGS CXXFLAGS
# I'm sick and tired of all the churn the three versions of autoconf # I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts # are causing in this repo. Stop committing the configure scripts
# and just autoregen. # and just autoregen.

View File

@@ -10,6 +10,11 @@ if [ "$1" == "32" ]; then
opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu" opt="--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"
fi 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 # Jonathan C dev hack: refer to LNKDOS16 in /usr/src/doslib
doslib= doslib=
if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi if [ -d /usr/src/doslib ]; then doslib="/usr/src/doslib"; fi