ports/devel/spin/files/patch-Src_main.c
Koichiro Iwao 5d563dc07c devel/spin: Ressurect the port & assign to submitter
it never actually needed gcc, "gcc" was just a hardcoded compiler name
instead of "cc".

While here,
- Upstream switched to GitHub
- Update to 6.5.0

PR:		241067
Submitted by:	Greg V <greg@unrelenting.technology>
2019-10-06 16:04:07 +00:00

20 lines
683 B
C

--- Src/main.c.orig 2019-10-04 20:09:58 UTC
+++ Src/main.c
@@ -103,7 +103,7 @@ void explain(int);
can later be truncated at that point
*/
#if 1
- #define CPP "gcc -std=gnu99 -E -x c" /* 6.4.0 new default on all systems */
+ #define CPP "cc -std=gnu99 -E -x c" /* 6.4.0 new default on all systems */
/* if gcc-4 is available, this setting is modified below */
#else
#if defined(PC) || defined(MAC)
@@ -579,7 +579,7 @@ void
preprocess(char *a, char *b, int a_tmp)
{ char precmd[1024], cmd[2048];
int i;
-#ifdef PC
+#if 0
/* gcc is sometimes a symbolic link to gcc-4
that does not work well in cygwin, so we try
to use the actual executable that is used.