scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit e82841a596e96f1ed950180a4ba9499f320c7a23
parent fec580eda7bcb19f1b1a1e2670506cc2bd2d7e44
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Jan 2019 22:33:41 +0000

Fix small bug in mklib

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

Diffstat:
Mconfig/toolchain/gnu.mk | 2+-
Mscripts/mklib | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/toolchain/gnu.mk b/config/toolchain/gnu.mk @@ -6,6 +6,6 @@ LINKER = ld RANLIB = ranlib ARCHIVE = ar -ARFLAGS = -U +ARCHIVEFLAGS = -U NOPIE_CFLAGS = -nopie NOPIE_LDFLAGS = -nopie diff --git a/scripts/mklib b/scripts/mklib @@ -35,9 +35,9 @@ lib=${out-a.out} 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