mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/Catch2: Fix multilib check.
Check if the multilib flag is not explicitly set. Otherwise we overwrite whatever was passed in through the env. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
19fc7bf6ce
commit
807ff51345
1 changed files with 7 additions and 5 deletions
|
@ -65,11 +65,13 @@ fi
|
|||
|
||||
#Test for multilib
|
||||
COMPAT32=${COMPAT32@L}
|
||||
COMPATTMP="$( mktemp -d $TMP/compat32-test-XXXXXX )"
|
||||
echo "int main(void) {; return(0); }" > "$COMPATTMP/test.c"
|
||||
gcc -m32 "$COMPATTMP/test.c" -o /dev/null >/dev/null 2>&1 \
|
||||
&& COMPAT32=${COMPAT32:-yes}
|
||||
rm -rf "$COMPATTMP"
|
||||
if [ "$COMPAT32" = "" ] ; then
|
||||
COMPATTMP="$( mktemp -d $TMP/compat32-test-XXXXXX )"
|
||||
echo "int main(void) {; return(0); }" > "$COMPATTMP/test.c"
|
||||
gcc -m32 "$COMPATTMP/test.c" -o /dev/null >/dev/null 2>&1 \
|
||||
&& COMPAT32=${COMPAT32:-yes}
|
||||
rm -rf "$COMPATTMP"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
|
|
Loading…
Reference in a new issue