Raymond Toy <toy(a)rtp.ericsson.se> wrote:
It seems that ellcc is putting the site-include paths before the
command line -I paths.
It sure is. This fixes it for me. Can you confirm?
lib-src/ChangeLog addition:
2003-01-14 Jerry James <james(a)xemacs.org>
* ellcc.c (do_compile_mode): Search XEmacs directories first for
include files. Thanks to Raymond Toy.
xemacs-21.5 Patch (cvs -q diff -uN lib-src/ellcc.c):
Index: lib-src/ellcc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/ellcc.c,v
retrieving revision 1.4
diff -d -u -r1.4 ellcc.c
--- lib-src/ellcc.c 2002/11/18 06:52:23 1.4
+++ lib-src/ellcc.c 2003/01/14 22:34:14
@@ -613,6 +613,7 @@
char **exec_argv = xnew (exec_argc + 20, char *);
exec_argv = add_to_argv (exec_argv, ellcc);
+ exec_argv = add_to_argv (exec_argv, ELLCC_CF_ALL);
exec_argv = add_to_argv (exec_argv, ellcflags);
exec_argv = add_to_argv (exec_argv, ellpicflags);
exec_argv = add_to_argv (exec_argv, "-DPIC");
@@ -623,7 +624,6 @@
exec_argv = add_to_argv (exec_argv, "-Dxemacs");
#endif
exec_argv = add_to_argv (exec_argv, "-Demacs");
- exec_argv = add_to_argv (exec_argv, ELLCC_CF_ALL);
for (i = 1; i < exec_argc; i++)
{
exec_argv = add_string (exec_argv, xstrdup (prog_argv[exec_args[i]]));
--
Jerry James
http://www.ittc.ku.edu/~james/