From 6be72cd8ca093c53f17d1a5b982daf2cca800b11 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Tue, 2 Feb 2016 14:57:28 -0500 Subject: [PATCH] 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: Frank Hunleth Reviewed-by: Romain Naour [Thomas: adjust commit message to indicate an example of an Erlang package that needs the C++ compiler.] Signed-off-by: Thomas Petazzoni --- package/pkg-rebar.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/pkg-rebar.mk b/package/pkg-rebar.mk index c727489bef..44c6d6c8d2 100644 --- a/package/pkg-rebar.mk +++ b/package/pkg-rebar.mk @@ -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) \