From f3d68031f5cebbcb79056b5006296822f01b2b8c Mon Sep 17 00:00:00 2001 From: Julien Fischer Date: Wed, 13 Jan 2021 15:24:23 +1100 Subject: [PATCH] Minor fixes for the doregtest script. runtime/machdeps/doregtest: Fix some things identified by ShellCheck. --- runtime/machdeps/doregtest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/machdeps/doregtest b/runtime/machdeps/doregtest index bf3a4dbe9..4870836d9 100755 --- a/runtime/machdeps/doregtest +++ b/runtime/machdeps/doregtest @@ -4,12 +4,12 @@ # the resulting executable. if [ $# -ne 1 ]; then - echo "Usage: `basename $0` register-name" 1>&2 + echo "Usage: $(basename $0) register-name" 1>&2 exit 1 fi CFLAGS= -PIC_CFLAGS= $CFLAGS -fpic +PIC_CFLAGS="${CFLAGS} -fpic" echo Trying register "$1"... if ../../scripts/mgnuc $CFLAGS "-DREG=\"$1\"" regtest.c regtest2.c -o /tmp/regtest$$ -lm &&