[erlang-questions] FreeBSD patches

Raimo Niskanen raimo+erlang-questions@REDACTED
Fri Sep 16 11:52:14 CEST 2011


Hi.

I am just curious about the patches that are in FreeBSD's port
tree for building Erlang, in particular these erts ones:

# cat files/patch-erts-emulator-Makefile.in 

$FreeBSD: ports/lang/erlang/files/patch-erts-emulator-Makefile.in,v 1.3 2008/11/05 23:32:22 olgeni Exp $

--- erts/emulator/Makefile.in.orig
+++ erts/emulator/Makefile.in
@@ -544,7 +546,7 @@
 endif
 
 $(OBJDIR)/%.o: beam/%.c
-       $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
+       $(CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
 
 else
 
# cat files/patch-erts_etc_common_erlc.c

$FreeBSD: ports/lang/erlang/files/patch-erts_etc_common_erlc.c,v 1.1 2010/04/07 22:04:49 olgeni Exp $

--- erts/etc/common/erlc.c.orig
+++ erts/etc/common/erlc.c
@@ -186,6 +186,7 @@
      */
 
     PUSH("-noinput");
+    PUSH2("-smp", "disable");
     PUSH2("-mode", "minimal");
     PUSH2("-boot", "start_clean");
     PUSH3("-s", "erl_compile", "compile_cmdline");

Given a good explanation we could include them in R15.

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list