Ensure make uses ASCII-only characters
This commit is contained in:
parent
92266db4f6
commit
eb9c0a8ec3
4 changed files with 11 additions and 5 deletions
|
@ -2,9 +2,11 @@
|
|||
ar="ar"
|
||||
ranlib="ranlib"
|
||||
function make_binary() {
|
||||
# Limit GCC to ASCII-only characters
|
||||
LC_ALL=C LANG=en_US LANGUAGE=en_US \
|
||||
gmake \
|
||||
--jobs="$(sysctl -n hw.physicalcpu)" \
|
||||
--output-sync=line \
|
||||
2>&1 | tee build.log
|
||||
}
|
||||
dependencies=("otool" "-L" "${executable}")
|
||||
dependencies=(otool -L "${executable}")
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Steps in-common to all OSes, plus some helper variables and functions.
|
||||
|
||||
STEPS=("pre_build" "clean" "autogen" "configure" "make_binary" "strip_binary" "dependencies" "post_build")
|
||||
STEPS=(pre_build clean autogen configure make_binary strip_binary dependencies post_build)
|
||||
|
||||
executable="src/dosbox"
|
||||
dependencies=("ldd" "${executable}")
|
||||
dependencies=(ldd "${executable}")
|
||||
|
||||
function pre_build() {
|
||||
cd ../..
|
||||
|
@ -28,8 +28,8 @@ function autogen() {
|
|||
|
||||
function configure() {
|
||||
if [[ ! -f Makefile || ! -f .previous_build || configure -nt Makefile ]]; then
|
||||
export CXXFLAGS="${CFLAGS}"
|
||||
./configure --enable-core-inline
|
||||
export CXXFLAGS="${CFLAGS} ${CXXONLY}"
|
||||
./configure --enable-core-inline ${configure_additions[*]}
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
function make_binary() {
|
||||
# Limit GCC to ASCII-only characters
|
||||
LC_ALL=C LANG=en_US LANGUAGE=en_US \
|
||||
make \
|
||||
--jobs="$(nproc)" \
|
||||
--output-sync=line \
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function make_binary() {
|
||||
# Limit GCC to ASCII-only characters
|
||||
LC_ALL=C LANG=en_US LANGUAGE=en_US \
|
||||
make \
|
||||
--jobs=$(nproc) \
|
||||
--output-sync=line \
|
||||
|
|
Loading…
Add table
Reference in a new issue