From 535449612dd1de510caca3ae0eac7daf19485553 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 13 Apr 2016 08:52:56 +0200 Subject: [PATCH] msys2 supports -Ofast and -flto these days --- dist-build/msys2-win32.sh | 3 ++- dist-build/msys2-win64.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist-build/msys2-win32.sh b/dist-build/msys2-win32.sh index bbe7b11a..513b8e49 100755 --- a/dist-build/msys2-win32.sh +++ b/dist-build/msys2-win32.sh @@ -1,6 +1,7 @@ #! /bin/sh -export CFLAGS="-O3 -fomit-frame-pointer -m32 -march=pentium3 -mtune=westmere" +export CFLAGS="-Ofast -fomit-frame-pointer -m32 -march=pentium3 -mtune=westmere" +export LDFLAGS="-m32 -march=pentium3 -flto" export PREFIX="$(pwd)/libsodium-win32" make distclean > /dev/null diff --git a/dist-build/msys2-win64.sh b/dist-build/msys2-win64.sh index 43f0b697..de5c1a14 100755 --- a/dist-build/msys2-win64.sh +++ b/dist-build/msys2-win64.sh @@ -1,6 +1,7 @@ #! /bin/sh -export CFLAGS="-O3 -fomit-frame-pointer -m64 -mtune=westmere" +export CFLAGS="-Ofast -fomit-frame-pointer -m64 -mtune=westmere -flto" +export LDFLAGS="-m64 -flto" export PREFIX="$(pwd)/libsodium-win64" make distclean > /dev/null