diff options
author | joerg@trift2. <> | 2007-12-28 13:31:24 +0100 |
---|---|---|
committer | joerg@trift2. <> | 2007-12-28 13:31:24 +0100 |
commit | 9e1dbd5bd9868c2b342d766d4b6acb8d5b3b54ba (patch) | |
tree | 475e407fd2c55dc96bdfd80faea038173ac56f59 /scripts/make_binary_distribution.sh | |
parent | bf1ba3d416e3b05a6585c29c8f5050d3dae5ec55 (diff) | |
parent | dc1fb0750a3bc7be662e7e88eeba6125b5dfcc93 (diff) | |
download | mariadb-git-9e1dbd5bd9868c2b342d766d4b6acb8d5b3b54ba.tar.gz |
Merge trift2.:/MySQL/M41/bug33536-4.1
into trift2.:/MySQL/M50/bug33536-5.0
Diffstat (limited to 'scripts/make_binary_distribution.sh')
-rw-r--r-- | scripts/make_binary_distribution.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh index a87bb03526d..8598a022669 100644 --- a/scripts/make_binary_distribution.sh +++ b/scripts/make_binary_distribution.sh @@ -400,11 +400,13 @@ BASE=$BASE2 # if [ x"@GXX@" = x"yes" ] ; then - gcclib=`@CC@ @CFLAGS@ --print-libgcc-file` - if [ $? -ne 0 ] ; then - echo "Warning: Couldn't find libgcc.a!" - else + gcclib=`@CC@ @CFLAGS@ --print-libgcc-file 2>/dev/null` || true + if [ -z "$gcclib" ] ; then + echo "Warning: Compiler doesn't tell libgcc.a!" + elif [ -f "$gcclib" ] ; then $CP $gcclib $BASE/lib/libmygcc.a + else + echo "Warning: Compiler result '$gcclib' not found / no file!" fi fi |