From 669c709f2f1609c7dbdf06587b068784d2f60192 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 21 Mar 2014 18:21:25 +0000 Subject: [PATCH] msys2-runtime: put OPTIM (-O0) stuff back in --- msys2-runtime/PKGBUILD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/msys2-runtime/PKGBUILD b/msys2-runtime/PKGBUILD index 3d48678d..f19d0bb1 100644 --- a/msys2-runtime/PKGBUILD +++ b/msys2-runtime/PKGBUILD @@ -35,8 +35,6 @@ prepare() { # patch -p1 -i ${srcdir}/0002-revert-mounting.patch # This is the new code, but it doesn't handle Unix PATH lists very well. patch -p1 -i ${srcdir}/0003-Add-msys2_path_conv.patch - - } build() { @@ -46,8 +44,14 @@ build() { # Gives more verbose compile output when debugging. if check_option "debug" "y"; then export CCWRAP_VERBOSE=1 + OPTIM="-O0" + else + OPTIM="-O2" fi + CFLAGS="$OPTIM -pipe -ggdb" + CXXFLAGS="$OPTIM -pipe -ggdb" + ${srcdir}/msys2-runtime/configure \ --prefix=/usr \ --build=${CHOST} \