aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-06-25 09:20:52 +0000
committerDRC <dcommander@users.sourceforge.net>2011-06-25 09:20:52 +0000
commit10da17ef422007ceab32661c67f88f9da0a7d98b (patch)
treec87acff6ff9c2bad4ac6c73aaf753811a147e716 /release
parentc377ebd9b599e34324ded6dcbbbe1f6f20f6b9f9 (diff)
downloadtigervnc-10da17ef422007ceab32661c67f88f9da0a7d98b.tar.gz
tigervnc-10da17ef422007ceab32661c67f88f9da0a7d98b.zip
Override the tarball architecture to i686 if -m32 was used on a 64-bit system
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4556 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'release')
-rw-r--r--release/maketarball.in6
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