You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/imake/files/imake-1.0.8-cpp-args.patch

19 lines
388 B

Copy code from IMAKEINCLUDE to IMAKECPP to handle arguments
such as -E. Lets IMAKECPP=$(tc-getCPP) be usable.
--- a/imake.c
+++ b/imake.c
@@ -532,6 +532,12 @@
}
}
- if ((p = getenv("IMAKECPP")))
+ if ((p = getenv("IMAKECPP"))) {
cpp = p;
+ for (; *p; p++)
+ if (*p == ' ') {
+ *p++ = '\0';
+ AddCppArg(p);
+ }
+ }
if ((p = getenv("IMAKEMAKE")))
make_argv[0] = p;