builder: minor changes to support mac 32 bit
Pass `CC="$CC $CFLAGS"` to `make` for `libgsm`, so that the `-m32` is passed for 32 bit builds. For `mac_install_core_deps()` make sure brew is installed and install brew perl, otherwise perl extensions cannot be built on Mojave for 32 bit. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
c1636d1bcf
commit
c93e017d3a
|
@ -408,11 +408,11 @@ DIST_MAKE_ARGS="$DIST_MAKE_ARGS
|
||||||
shared-mime-info -j1
|
shared-mime-info -j1
|
||||||
xvidcore -j1
|
xvidcore -j1
|
||||||
fontconfig LIBS=\"-lintl -liconv\"
|
fontconfig LIBS=\"-lintl -liconv\"
|
||||||
|
libgsm CC=\"\$CC \$CFLAGS\"
|
||||||
"
|
"
|
||||||
|
|
||||||
DIST_MAKE_INSTALL_ARGS="$DIST_MAKE_INSTALL_ARGS
|
DIST_MAKE_INSTALL_ARGS="$DIST_MAKE_INSTALL_ARGS
|
||||||
openssl MANDIR=/share/man
|
openssl MANDIR=/share/man
|
||||||
libgsm CC=\"\$CC\"
|
|
||||||
"
|
"
|
||||||
|
|
||||||
DIST_EXTRA_LDFLAGS="$DIST_EXTRA_LDFLAGS
|
DIST_EXTRA_LDFLAGS="$DIST_EXTRA_LDFLAGS
|
||||||
|
@ -745,6 +745,12 @@ mac_install_core_deps() {
|
||||||
|
|
||||||
error 'Please install XCode and the XCode Command Line Tools, then run this script again. On newer systems this can be done with: [35m;xcode-select --install[0m'
|
error 'Please install XCode and the XCode Command Line Tools, then run this script again. On newer systems this can be done with: [35m;xcode-select --install[0m'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v brew >/dev/null; then
|
||||||
|
error 'Please install Mac Homebrew: [35m;https://brew.sh/[0m'
|
||||||
|
fi
|
||||||
|
|
||||||
|
brew -v install perl
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_tmp_dir() {
|
setup_tmp_dir() {
|
||||||
|
|
Loading…
Reference in New Issue