From 703a9f93c1254f7bdf0350ca0462de0d78033c62 Mon Sep 17 00:00:00 2001
From: Tuomas Tynkkynen <tuomas@tuxera.com>
Date: Wed, 29 Nov 2017 22:51:58 +0200
Subject: [PATCH] gcc6: Restore missing platform flags

This was missed in commit 1c1207220f06
("gcc: Refactor treatment of configure flags"), all other GCC versions
have it right.
---
 pkgs/development/compilers/gcc/6/default.nix | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix
index 151dc96b2426..d9f4d35f4f8f 100644
--- a/pkgs/development/compilers/gcc/6/default.nix
+++ b/pkgs/development/compilers/gcc/6/default.nix
@@ -391,6 +391,7 @@ stdenv.mkDerivation ({
       in "--with-native-system-header-dir=${incDir}"
     ) ++
 
+    optional (targetPlatform == hostPlatform) (mkPlatformFlags stdenv.platform) ++
     optional (targetPlatform != hostPlatform) crossConfigureFlags ++
     optional (!bootstrap) "--disable-bootstrap" ++