Skip to content

Commit

Permalink
Merge pull request joncampbell123#5143 from MrMEEE/Linux-VHD-Fix
Browse files Browse the repository at this point in the history
Changed Linux build to use 16-bit wide chars, to fix issue joncampbell123#5132
  • Loading branch information
joncampbell123 authored Aug 3, 2024
2 parents 5af9c01 + 37268a7 commit 30b55b2
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions build-debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions build-debug-g3
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if [ "${1}" == "32" ]; then
shift
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
# are causing in this repo. Stop committing the configure scripts
# and just autoregen.
Expand Down
5 changes: 5 additions & 0 deletions build-debug-g3-sdl2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if [ "${1}" == "32" ]; then
shift
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
# are causing in this repo. Stop committing the configure scripts
# and just autoregen.
Expand Down
5 changes: 5 additions & 0 deletions build-debug-gcc-prof
Original file line number Diff line number Diff line change
Expand Up @@ -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

# I'm sick and tired of all the churn the three versions of autoconf
# are causing in this repo. Stop committing the configure scripts
# and just autoregen.
Expand Down
5 changes: 5 additions & 0 deletions build-debug-sdl2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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
Expand Down

0 comments on commit 30b55b2

Please sign in to comment.