Browse Source

tt_type_comp: use CppCmd definition

Hi.

This patch makes tt_type_comp respect CppCmd

Thanks!
Nina Didenko 4 years ago
parent
commit
9221c55a5f
2 changed files with 8 additions and 1 deletions
  1. 3 1
      cde/lib/tt/bin/tt_type_comp/Imakefile
  2. 5 0
      cde/lib/tt/lib/tt_options.h

+ 3 - 1
cde/lib/tt/bin/tt_type_comp/Imakefile

@@ -8,7 +8,9 @@ EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
 #include "../../tooltalk.tmpl"
 
-DEFINES = 
+CPP_PROGRAM = CppCmd
+CPP_DEFINES = -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
+DEFINES = $(CPP_DEFINES)
 INCLUDES = $(TIRPCINC) -I../../lib -I../../slib
 
 DEPLIBS         = ../../slib/libstt.a TtClientDepLibs

+ 5 - 0
cde/lib/tt/lib/tt_options.h

@@ -529,4 +529,9 @@
 
 #endif
 
+#ifdef CPP_PROGRAM
+# undef OPT_CPP_PATH
+# define OPT_CPP_PATH CPP_PROGRAM
+#endif
+
 #endif				/* _TT_OPTIONS_H */