Merge branch 'samuela-master-patch-27512' into 'master'

Workaround for homebrew gettext when building xz

See merge request redox-os/cookbook!232
This commit is contained in:
Jeremy Soller 2020-01-20 23:56:11 +00:00
commit 7d223f951f

View File

@ -13,8 +13,17 @@ function recipe_update {
function recipe_build {
export CFLAGS="-static"
# autogen.sh requires autopoint which is provided by the gettext homebrew
# formula on macOS. Unfortunately, homebrew does not install it into PATH
# because macOS provides the BSD gettext library. So we make sure to include
# it in PATH, preceding the default BSD version.
if [[ "$(uname)" == "Darwin" ]]; then
export PATH="/usr/local/opt/gettext/bin:$PATH"
fi
./autogen.sh
chmod +w build-aux/config.sub
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure \