shithub: scc

Download patch

ref: 003430be651c10b45a2baafa37d2e2dee5ff594f
parent: 08d10710ffe6dd68c327983b794f2d2dbe183441
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jan 16 17:33:41 EST 2019

Fix small bug in mklib

Using ARFLAGS was a bad idea because it is a variable
used in make and can have unexpected values.

--- a/config/toolchain/gnu.mk
+++ b/config/toolchain/gnu.mk
@@ -6,6 +6,6 @@
 RANLIB = ranlib
 ARCHIVE = ar
 
-ARFLAGS = -U
+ARCHIVEFLAGS = -U
 NOPIE_CFLAGS = -nopie
 NOPIE_LDFLAGS = -nopie
--- a/scripts/mklib
+++ b/scripts/mklib
@@ -35,9 +35,9 @@
 
 if ! test -f $lib
 then
-	${AR:-ar} $ARFLAGS -qv $lib $(lorder $@ | tsort)
+	${AR:-ar} $ARCHIVEFLAGS -qv $lib $(lorder $@ | tsort)
 else
-	${AR:-ar} $ARFLAGS -ruv $lib $(lorder $@ | tsort)
+	${AR:-ar} $ARCHIVEFLAGS -ruv $lib $(lorder $@ | tsort)
 fi
 
 ${RL:-ranlib} $RLFLAGS $lib