Skip to content
Snippets Groups Projects

Workaround for homebrew gettext when building xz

Merged samuela requested to merge samuela/cookbook:samuela-master-patch-27512 into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -14,7 +14,12 @@ function recipe_update {
@@ -14,7 +14,12 @@ function recipe_update {
function recipe_build {
function recipe_build {
export CFLAGS="-static"
export CFLAGS="-static"
./autogen.sh
# 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.
 
PATH="/usr/local/opt/gettext/bin:$PATH" ./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
./configure \
./configure \
Loading