summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Hunleth <fhunleth@troodon-software.com>2017-02-18 16:01:11 -0500
committerPeter Korsgaard <peter@korsgaard.com>2017-02-19 23:20:43 +0100
commit9e90efa52ec3fd2d62b59488a1b347a55d356234 (patch)
tree5c99c1e61b0cd2f3f691ca676af21678a097a023
parent90ef9a24bce917f8d2e9619c1ebeda92633be251 (diff)
downloadbuildroot-9e90efa52ec3fd2d62b59488a1b347a55d356234.tar.gz
buildroot-9e90efa52ec3fd2d62b59488a1b347a55d356234.zip
erlang: set ERL_TOP to avoid using user's version
Explicitly set the ERL_TOP environment variable to override values set on a user's system. This prevents Erlang's configure scripts from using source files outside of the ones that Buildroot downloaded. Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/erlang/erlang.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 3200c388fd..364085c4dd 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -30,6 +30,12 @@ ERLANG_CONF_ENV += erl_xcomp_sysroot=$(STAGING_DIR)
ERLANG_CONF_OPTS = --without-javac
+# Force ERL_TOP to the downloaded source directory. This prevents
+# Erlang's configure script from inadvertantly using files from
+# a version of Erlang installed on the host.
+ERLANG_CONF_ENV += ERL_TOP=$(@D)
+HOST_ERLANG_CONF_ENV += ERL_TOP=$(@D)
+
# erlang uses openssl for all things crypto. Since the host tools (such as
# rebar) uses crypto, we need to build host-erlang with support for openssl.
HOST_ERLANG_DEPENDENCIES = host-openssl
OpenPOWER on IntegriCloud