erlang: move if statement to pre_configure, rebuild with our CFLAGS.
This commit is contained in:
parent
4f76a762f7
commit
4692d8b7c4
1 changed files with 8 additions and 8 deletions
|
@ -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() {
|
||||||
# Build the bootstrap compiler for the host platform.
|
if [ "$CROSS_BUILD" ]; then
|
||||||
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
|
# Build the bootstrap compiler for the host platform.
|
||||||
env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs}
|
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
|
||||||
configure_args+=" --build=$(erts/autoconf/config.guess)"
|
env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs}
|
||||||
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
|
configure_args+=" --build=$(erts/autoconf/config.guess)"
|
||||||
|
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
fi
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir usr/share/man
|
vmkdir usr/share/man
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue