From bd510dea205281aa87bf008f7bc6ad885bc90b77 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 1 Feb 2010 10:56:47 -0700 Subject: [PATCH] Tweaking order of defaults so that -shared is default across platforms unless explicitly overridden --- src/rebar_port_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 7ca968b..a347cb7 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -247,8 +247,8 @@ default_env() -> {"CXX", "g++"}, {"CFLAGS", "-g -Wall -fPIC"}, {"CXXFLAGS", "-g -Wall -fPIC"}, + {"LDFLAGS", "-shared"}, {"darwin", "LDFLAGS", "-bundle -flat_namespace -undefined suppress"}, - {"linux", "LDFLAGS", "-shared"}, {"DRIVER_CFLAGS", lists:concat([" -I", code:lib_dir(erl_interface, include), " -I", filename:join(erts_dir(), include), " "])},