Skip to content

Commit e748fa6

Browse files
shawnlaffangenio
authored andcommitted
build.sh: use default dllsuffix when args are package names
1 parent 6e11d9a commit e748fa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,13 @@ ARCHNICK=32bit
145145
ARCHBITS=32
146146
fi
147147

148+
export DLLSUFFIX=$2
148149
if [ ! -e "$1" ] ; then
149150
echo "Warning: assuming params to be package names!"
150151
export PKGLISTNAME=buildtest
151152
PKGLIST=$@
153+
# dllsuffix will be set to the default below
154+
export DLLSUFFIX=
152155
else
153156
# parameter 1: pkg-list filename
154157
export PKGLISTNAME=$1
@@ -158,7 +161,6 @@ fi
158161

159162
# handle no dllsuffix being passed
160163
# assumes user wants _ or __, which is what the build system is set up for
161-
export DLLSUFFIX=$2
162164
if [ -z "$DLLSUFFIX" ] ; then
163165
if [ $IS64BIT ] ; then
164166
export DLLSUFFIX=__

0 commit comments

Comments
 (0)