openbsd-ports/www/fennec/patches/patch-js_src_Makefile_in

27 lines
953 B
Plaintext

$OpenBSD: patch-js_src_Makefile_in,v 1.5 2011/12/08 01:35:08 nigel Exp $: patch-js_src_Makefile_in,v 1.3 2011/06/28 22:01:18 landry Exp $
--- js/src/Makefile.in.orig Thu Nov 17 19:43:54 2011
+++ js/src/Makefile.in Thu Nov 17 19:47:41 2011
@@ -438,6 +438,9 @@ else
###############################################
# BEGIN include sources for the Nitro assembler
#
+
+ENABLE_YARR_JIT = 1
+
VPATH += $(srcdir)/assembler \
$(srcdir)/assembler/wtf \
$(srcdir)/assembler/jit \
@@ -1081,7 +1084,11 @@ endif
# Needed to "configure" it correctly. Unfortunately these
# flags wind up being applied to all code in js/src, not just
# the code in js/src/assembler.
-CXXFLAGS += -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1
+CXXFLAGS += -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1
+
+ifneq (,$(ENABLE_YARR_JIT)$(ENABLE_TRACEJIT)$(ENABLE_METHODJIT))
+CXXFLAGS += -DENABLE_JIT=1
+endif
INCLUDES += -I$(srcdir)/assembler -I$(srcdir)/yarr