erlang: move if statement to pre_configure, rebuild with our CFLAGS.
This commit is contained in:
parent
4f76a762f7
commit
4692d8b7c4
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'erlang'
|
||||
pkgname=erlang
|
||||
version=17.4
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=otp_src_${version}
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-smp-support"
|
||||
|
@ -19,15 +19,15 @@ checksum="0d82eda6ae7ac6f0f860093324e540fa514497068ec3b4177800284e8c761f56
|
|||
|
||||
build_options="x11"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
pre_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# Build the bootstrap compiler for the host platform.
|
||||
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
|
||||
env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs}
|
||||
configure_args+=" --build=$(erts/autoconf/config.guess)"
|
||||
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
|
||||
}
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vmkdir usr/share/man
|
||||
|
|
Loading…
Reference in New Issue