Browse Source

Override the link templates to use g++ as the linker

pull/190/head
Benedikt Reinartz 5 years ago
parent
commit
f77dc73779
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      rebar.config

+ 3
- 1
rebar.config View File

@ -8,6 +8,8 @@
{port_env, [
{".*", "FLTO_FLAG", ""},
{".*", "EXE_LINK_TEMPLATE", "$CXX $PORT_IN_FILES $LDFLAGS $EXE_LDFLAGS -o $PORT_OUT_FILE"},
{".*", "DRV_LINK_TEMPLATE", "$CXX $PORT_IN_FILES $LDFLAGS $DRV_LDFLAGS -o $PORT_OUT_FILE"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -Ic_src/ -g -Wall $FLTO_FLAG -Werror -O3"},
@ -36,7 +38,7 @@
verbose
]}.
{project_plugins, [{pc, "~> 1.0"}]}.
{plugins, [{pc, "~> 1.0"}]}.
{artifacts, ["priv/jiffy.so"]}.
{provider_hooks, [
{post,

Loading…
Cancel
Save