erlang: move if statement to pre_configure, rebuild with our CFLAGS.

This commit is contained in:
Juan RP 2015-02-24 11:11:23 +01:00
parent 4f76a762f7
commit 4692d8b7c4
1 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'erlang' # Template file for 'erlang'
pkgname=erlang pkgname=erlang
version=17.4 version=17.4
revision=1 revision=2
wrksrc=otp_src_${version} wrksrc=otp_src_${version}
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-smp-support" configure_args="--enable-smp-support"
@ -19,15 +19,15 @@ checksum="0d82eda6ae7ac6f0f860093324e540fa514497068ec3b4177800284e8c761f56
build_options="x11" build_options="x11"
if [ "$CROSS_BUILD" ]; then
pre_configure() { pre_configure() {
if [ "$CROSS_BUILD" ]; then
# Build the bootstrap compiler for the host platform. # Build the bootstrap compiler for the host platform.
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs} env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs}
configure_args+=" --build=$(erts/autoconf/config.guess)" configure_args+=" --build=$(erts/autoconf/config.guess)"
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET} export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
fi
} }
fi
post_install() { post_install() {
vmkdir usr/share/man vmkdir usr/share/man