[erlang-questions] Building 64-bit Erlang on Solaris 11
Thu Oct 2 12:16:56 CEST 2008
Joel Reymont writes:
> On Oct 2, 2008, at 8:57 AM, Mikael Pettersson wrote:
> > I believe the problem is that the otp build system probably
> > overrides CFLAGS, which would cancel any user setting of CFLAGS.
> > What I and others typically do for 64-bit builds is to set
> > CC='gcc -m64' or to point CC to a script that always adds -m64.
> That doesn't work too well...
> checking for a compiler that handles jumptables... /home/admin/
> otp_src_R12B-4/erts/configure: line 20569: test: too many arguments
> /home/admin/otp_src_R12B-4/erts/configure: line 20587: test: too many
> gcc -m64
> /home/admin/otp_src_R12B-4/erts/configure: line 20660: test: too many
> checking for static ZLib to be used by SSL in standard locations... no
Maybe I misremembered the CC='gcc -m64' ./configure approach,
it does work in other projects. The auxiliary script approach
is known to work in Erlang however:
cat > /tmp/gcc64
exec gcc -m64 "$@"
chmod +x /tmp/gcc64
More information about the erlang-questions