ports/print/tex-luatex/files/patch-luatexdir_tex_textoken.w
Dimitry Andric b8aceeb601 print/tex-luatex: Avoid mixing libc++ and libstdc++, and don't use -fcommon
This port was not respecting the CC and CXX variables, thus it could
pick up gcc and g++ instead, and that would cause mixups between
libstdc++ (which is preferred by gcc) and libc++ (which is in base),
ultimately leading to link errors.

Also, the port uses a very old version of tex so it suffers from a few
-fno-common issues, mostly variables that have been declared without an
'extern' specifier. Add a few patches to fix these.

Appproved by:	maintainer timeout
PR:		234221
MFH:		2021Q2
2021-05-06 23:29:24 +02:00

11 lines
527 B
OpenEdge ABL

--- luatexdir/tex/textoken.w.orig 2015-03-28 00:34:27 UTC
+++ luatexdir/tex/textoken.w
@@ -75,7 +75,7 @@ maximum memory usage. When code between the delimiters
report these statistics when |tracing_stats| is sufficiently large.
@c
-int var_used, dyn_used; /* how much memory is in use */
+int dyn_used; /* how much memory is in use */
halfword avail; /* head of the list of available one-word nodes */
unsigned fix_mem_end; /* the last one-word node used in |mem| */