diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/maketarball.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/maketarball.in b/release/maketarball.in index b6740e43..40af2584 100644 --- a/release/maketarball.in +++ b/release/maketarball.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -u set -e @@ -22,6 +22,10 @@ SRCDIR=@CMAKE_SOURCE_DIR@ OS=@CMAKE_SYSTEM_NAME@ CPU=@CMAKE_SYSTEM_PROCESSOR@ PREFIX=@CMAKE_INSTALL_PREFIX@ +CFLAGS="@CMAKE_C_FLAGS@" +if [[ $CFLAGS = *-m32* ]]; then + CPU=i686 +fi PACKAGE_FILE=$PACKAGE_NAME-$OS-$CPU-$VERSION.tar.gz SERVER=0 |