shithub: scc

Download patch

ref: 7e4220e1c67a2049e8df31f979cc34d13d3f6938
parent: 585f0ebb06fb18adb79d7e9749f081cbbe1a7662
author: Quentin Rameau <[email protected]>
date: Mon Aug 23 04:52:14 EDT 2021

scripts/config: Fix ARFLAGS on OpenBSD

Even with .POSIX target, OpenBSD make sets
ARFLAGS to rv instead of -rv, resulting in calling
ar -u rv, and breaking the build.
Forcing it to POSIX default value until it's fixed
upstream solves the problem.

--- a/scripts/config
+++ b/scripts/config
@@ -2,7 +2,7 @@
 
 case `uname` in
 OpenBSD)
-	echo TOOL=${TOOL:-clang} HOST=bsd
+	echo TOOL=${TOOL:-clang} HOST=bsd ARFLAGS=${ARFLAGS:--rv}
 	;;
 *BSD)
 	echo HOST=bsd