Commit 6be72cd8 authored by Frank Hunleth's avatar Frank Hunleth Committed by Thomas Petazzoni
Browse files

pkg-rebar.mk: pass C++ compiler path and options



Previously only the C compiler path and options were passed to rebar.
Erlang projects that used the C++ compiler would fail to build, which
would for example be the case with the latest version of
erlang-p1-stringprep. This fixes those errors.

Signed-off-by: default avatarFrank Hunleth <fhunleth@troodon-software.com>
Reviewed-by: default avatarRomain Naour <romain.naour@gmail.com>
[Thomas: adjust commit message to indicate an example of an Erlang
package that needs the C++ compiler.]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent b640c257
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -158,7 +158,9 @@ ifndef $(2)_BUILD_CMDS
define $(2)_BUILD_CMDS
	(cd $$(@D); \
		CC="$$(TARGET_CC)" \
		CXX="$$(TARGET_CXX)" \
		CFLAGS="$$(TARGET_CFLAGS)" \
		CXXFLAGS="$$(TARGET_CXXFLAGS)" \
		LDFLAGS="$$(TARGET_LDFLAGS)" \
		$$(REBAR_TARGET_DEPS_ENV) \
		$$(TARGET_MAKE_ENV) \