summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2017-11-29 22:51:58 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2017-11-29 23:09:17 +0200
commit703a9f93c1254f7bdf0350ca0462de0d78033c62 (patch)
tree63c6ecd181881c773522c87e606b9940974a6f4c /pkgs/development/compilers/gcc
parent0f249a73548ed950acd95bd9d64c4ea05522876f (diff)
downloadnixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar.gz
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar.bz2
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar.lz
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar.xz
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.tar.zst
nixlib-703a9f93c1254f7bdf0350ca0462de0d78033c62.zip
gcc6: Restore missing platform flags
This was missed in commit 1c1207220f06
("gcc: Refactor treatment of configure flags"), all other GCC versions
have it right.
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/6/default.nix1
1 files changed, 1 insertions, 0 deletions
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" ++