shithub: scc

Download patch

ref: 74c223987d55d20be4b1b52477ff91f83b9e5b31
parent: b3488c5dd50392ce8132b062223d9764772c6353
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Aug 26 09:44:12 EDT 2018

[driver/posix] Fix path to crt.o

This patch was outdated.

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -151,13 +151,13 @@
 			break;
 		}
 		n = snprintf(NULL, 0,
-		             "%s/lib/scc/crt/%s-%s-%s/crt.o",
+		             "%s/lib/scc/%s-%s-%s/crt.o",
 		             prefix, arch, abi, sys);
 		if (n < 0)
 			die("scc: wrong crt file name");
 		crt = xmalloc(++n);
 		sprintf(crt,
-		        "%s/lib/scc/crt/%s-%s-%s/crt.o",
+		        "%s/lib/scc/%s-%s-%s/crt.o",
 		        prefix, arch, abi, sys);
 		addarg(tool, crt);
 		break;