BW-userx |
04-03-2020 09:55 AM |
Quote:
Originally Posted by thethinker
(Post 6107411)
This works, it now builds on both vanilla and multilib. Thanks!
|
you're leaving both blank and only assigning one,
Code:
if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
why not just do this, if true, do this , else do that.
Code:
[ "$ARCH" = "x86_64" ] &&
{ LIBDIRSUFFIX="64" ; } ||
{ LIBDIRSUFFIX="" ; }
#which can be written
[ "$ARCH" = "x86_64" ] && { LIBDIRSUFFIX="64" ; } || { LIBDIRSUFFIX="" ; }
or the ole'
if [ "$ARCH" = "x86_64" ] ;
then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
|