summaryrefslogtreecommitdiff
path: root/devel/eclipse-titan/files/patch-compiler2-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/eclipse-titan/files/patch-compiler2-Makefile')
-rw-r--r--devel/eclipse-titan/files/patch-compiler2-Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/eclipse-titan/files/patch-compiler2-Makefile b/devel/eclipse-titan/files/patch-compiler2-Makefile
new file mode 100644
index 000000000000..54d85a6bdb30
--- /dev/null
+++ b/devel/eclipse-titan/files/patch-compiler2-Makefile
@@ -0,0 +1,19 @@
+--- compiler2/Makefile.orig 2024-11-14 11:50:43 UTC
++++ compiler2/Makefile
+@@ -55,12 +55,16 @@ ifeq ($(XMLDIR), default)
+ ifdef XMLDIR
+ ifeq ($(XMLDIR), default)
+ XMLDIR := /usr
++ CPPFLAGS += -DXMLDIR=\"$(XMLDIR)\"
+ # do not add -L/usr/lib to LDFLAGS, it's redundant
+ else
+ LDFLAGS += -L$(XMLDIR)/lib
++ CPPFLAGS += -DXMLDIR=\"$(XMLDIR)\"
+ endif
+
+ CPPFLAGS += -I$(XMLDIR)/include/libxml2
++else
++ CPPFLAGS += -DXMLDIR=\"\$$(TTCN3_DIR)\"
+ endif
+
+ ifdef SRCDIR