]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/build.sh: Use GCC49 toolchains with GCC 6.[0-2]
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 6 Dec 2016 12:03:25 +0000 (12:03 +0000)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 6 Dec 2016 17:00:56 +0000 (18:00 +0100)
The goal of the patch is to avoid using -flto with GCC 6.0 to 6.2.

This is to workaround a GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70955

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/build.sh

index 95fe8fb076473af754c358885536c462e21aef6f..b6e936056ca0bef63bc54b87e7d9c57e9a4bd839 100755 (executable)
@@ -102,7 +102,7 @@ case `uname` in
       4.8.*)
         TARGET_TOOLS=GCC48
         ;;
-      4.9.*)
+      4.9.*|6.[0-2].*)
         TARGET_TOOLS=GCC49
         ;;
       *)