On 2008/11/12 18:40, Alex Popov wrote:
> Hi,
>
> Please see attached diff that brings lang/erlang port to 12B5.
> -lib/erlang/${ERTS}/include/internal/i386/
> -lib/erlang/${ERTS}/include/internal/i386/atomic.h
> -lib/erlang/${ERTS}/include/internal/i386/ethread.h
> -lib/erlang/${ERTS}/include/internal/i386/rwlock.h
> -lib/erlang/${ERTS}/include/internal/i386/spinlock.h
> +lib/erlang/${ERTS}/include/internal/${MACHINE_ARCH}/
> +lib/erlang/${ERTS}/include/internal/${MACHINE_ARCH}/atomic.h
> +lib/erlang/${ERTS}/include/internal/${MACHINE_ARCH}/ethread.h
> +lib/erlang/${ERTS}/include/internal/${MACHINE_ARCH}/rwlock.h
> +lib/erlang/${ERTS}/include/internal/${MACHINE_ARCH}/spinlock.h
you need to watch out for this in the PLIST; MACHINE_ARCH is
included in SUBST_VARS by default, so make-plist will substitute
any text in the PLIST which is equal to the _current_ value of
MACHINE_ARCH with the variable name.
when this is then built on a different arch, you have a
problem..
I think you just need to take care of it manually, there
isn't an easy way to remove MACHINE_ARCH from SUBST_VARS in
the port's Makefile. unless anyone has any better ideas...?