From 7eba7a7a140c3fadcd0b501713dbca79a48ff398 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 28 Dec 2015 22:53:57 +0100 Subject: [PATCH] compile_min.sh, add appropriate flags -O2, -s for release build and drop '-fno-omit-frame-pointer'. This entry compensates for a compiler bug of actual mingw gcc 4.6.1. which was introduced in commit commit 5b1be4d32d4fa617009298976325f333db60500d Author: h_vogt Date: Sat Jan 28 09:59:27 2012 +0000 prepare for release 24 --- compile_min.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile_min.sh b/compile_min.sh index ffdeeade8..4ceb6361e 100644 --- a/compile_min.sh +++ b/compile_min.sh @@ -51,14 +51,14 @@ if test "$1" = "64"; then echo "configuring for 64 bit" echo # You may add --enable-adms to the following command for adding adms generated devices - ../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -fno-omit-frame-pointer" LDFLAGS="-m64" + ../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s" else cd release if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi echo "configuring for 32 bit" echo # You may add --enable-adms to the following command for adding adms generated devices - ../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice" CFLAGS="-m32 -fno-omit-frame-pointer" LDFLAGS="-m32" + ../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice" CFLAGS="-m32 -O2" LDFLAGS="-m32 -s" fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi