mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Fix compiler invocation on multiarch Linux
This fixes port compilation for some configurations, notably this one: Debian with 32-bit userspace, 64-bit kernel and 64-bit erlang packages.
This commit is contained in:
parent
24ce11c381
commit
6fca763c9b
1 changed files with 5 additions and 0 deletions
|
@ -581,6 +581,11 @@ default_env() ->
|
||||||
{"solaris.*-64$", "CXXFLAGS", "-D_REENTRANT -m64 $CXXFLAGS"},
|
{"solaris.*-64$", "CXXFLAGS", "-D_REENTRANT -m64 $CXXFLAGS"},
|
||||||
{"solaris.*-64$", "LDFLAGS", "-m64 $LDFLAGS"},
|
{"solaris.*-64$", "LDFLAGS", "-m64 $LDFLAGS"},
|
||||||
|
|
||||||
|
%% Linux specific flags for multiarch
|
||||||
|
{"linux.*-64$", "CFLAGS", "-m64 $CFLAGS"},
|
||||||
|
{"linux.*-64$", "CXXFLAGS", "-m64 $CXXFLAGS"},
|
||||||
|
{"linux.*-64$", "LDFLAGS", "-m64 $LDFLAGS"},
|
||||||
|
|
||||||
%% OS X Leopard flags for 64-bit
|
%% OS X Leopard flags for 64-bit
|
||||||
{"darwin9.*-64$", "CFLAGS", "-m64 $CFLAGS"},
|
{"darwin9.*-64$", "CFLAGS", "-m64 $CFLAGS"},
|
||||||
{"darwin9.*-64$", "CXXFLAGS", "-m64 $CXXFLAGS"},
|
{"darwin9.*-64$", "CXXFLAGS", "-m64 $CXXFLAGS"},
|
||||||
|
|
Loading…
Reference in a new issue