aboutsummaryrefslogtreecommitdiffstats
path: root/make/otp.mk.in
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-02-22 11:55:57 +0100
committerPatrik Nyblom <[email protected]>2012-02-28 15:01:02 +0100
commitd28b000e1d33222a4ef0de387a6e359a52cb8249 (patch)
treee7fa7ff3f7c69cc4038280eb1e6a415066abf229 /make/otp.mk.in
parentf06de6450bbbd324a0784780d892fa69908a2126 (diff)
downloadotp-d28b000e1d33222a4ef0de387a6e359a52cb8249.tar.gz
otp-d28b000e1d33222a4ef0de387a6e359a52cb8249.tar.bz2
otp-d28b000e1d33222a4ef0de387a6e359a52cb8249.zip
Make hipe hipe-compiled w/ --enable-native-libs
Diffstat (limited to 'make/otp.mk.in')
-rw-r--r--make/otp.mk.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/make/otp.mk.in b/make/otp.mk.in
index 507f040729..b9ab9dd4b5 100644
--- a/make/otp.mk.in
+++ b/make/otp.mk.in
@@ -115,6 +115,12 @@ $(EBIN)/%.beam: $(EGEN)/%.erl
$(EBIN)/%.beam: $(ESRC)/%.erl
$(ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
+ifeq ($(NATIVE_LIBS_ENABLED),yes)
+# Special rule for the HIPE bootstrap w/ native libs
+../boot_ebin/%.beam: $(ESRC)/%.erl
+ $(ERLC) $(ERL_COMPILE_FLAGS) -o../boot_ebin $<
+endif
+
.erl.beam:
$(ERLC) $(ERL_COMPILE_FLAGS) -o$(dir $@) $<