diff options
-rw-r--r-- | development/Catch2/Catch2.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/development/Catch2/Catch2.SlackBuild b/development/Catch2/Catch2.SlackBuild index 1b0dbedc52c94..0432421d8ad79 100644 --- a/development/Catch2/Catch2.SlackBuild +++ b/development/Catch2/Catch2.SlackBuild @@ -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 |