Skip to content
Snippets Groups Projects
Commit b16fe2e8 authored by samuela's avatar samuela
Browse files

Only change the path when on macOS

parent 8e10e150
No related branches found
No related tags found
1 merge request!232Workaround for homebrew gettext when building xz
...@@ -13,12 +13,16 @@ function recipe_update { ...@@ -13,12 +13,16 @@ function recipe_update {
function recipe_build { function recipe_build {
export CFLAGS="-static" export CFLAGS="-static"
# autogen.sh requires autopoint which is provided by the gettext homebrew # autogen.sh requires autopoint which is provided by the gettext homebrew
# formula on macOS. Unfortunately, homebrew does not install it into PATH # formula on macOS. Unfortunately, homebrew does not install it into PATH
# because macOS provides the BSD gettext library. So we make sure to include # because macOS provides the BSD gettext library. So we make sure to include
# it in PATH. # it in PATH, preceding the default BSD version.
PATH="/usr/local/opt/gettext/bin:$PATH" ./autogen.sh if [[ "$(uname)" == "Darwin" ]]; then
export PATH="/usr/local/opt/gettext/bin:$PATH"
fi
./autogen.sh
chmod +w build-aux/config.sub chmod +w build-aux/config.sub
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment