shithub: scc

Download patch

ref: f80fa5e7c0dea2a1c512535dff394cebcda52d5c
parent: eda3eda0e85209d3a18460f2b569f469fc1610a4
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 5 10:11:30 EST 2022

build: Use /usr/local as default PREFIX

Scc was using $HOME as default PREFIX because it was not mature
enough to be installed in a system path. The situation is
different now, and it can be installed in a system path with less
problems.

--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@
 PROJECTDIR = .
 include $(PROJECTDIR)/scripts/rules.mk
 
-PREFIX = $(HOME)
+PREFIX = /usr/local
 ROOT = $(DESTDIR)$(PREFIX)
 NODEP = 1
 
--- a/src/cmd/cc/posix/Makefile
+++ b/src/cmd/cc/posix/Makefile
@@ -1,5 +1,6 @@
 .POSIX:
 
+PREFIX = /usr/local
 PROJECTDIR = ../../../..
 include $(PROJECTDIR)/scripts/rules.mk