···185185 libc_dev = stdenv.cc.libc_dev;
186186187187 postPatch =
188188- if (hostPlatform.isHurd
189189- || (libcCross != null # e.g., building `gcc.crossDrv'
190190- && libcCross ? crossConfig
191191- && libcCross.crossConfig == "i586-pc-gnu")
192192- || (crossGNU && libcCross != null))
188188+ if targetPlatform.isHurd
193189 then
194190 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
195191 # in glibc, so add the right `-I' flags to the default spec string.
+1-5
pkgs/development/compilers/gcc/4.9/default.nix
···194194 libc_dev = stdenv.cc.libc_dev;
195195196196 postPatch =
197197- if (hostPlatform.isHurd
198198- || (libcCross != null # e.g., building `gcc.crossDrv'
199199- && libcCross ? crossConfig
200200- && libcCross.crossConfig == "i586-pc-gnu")
201201- || (crossGNU && libcCross != null))
197197+ if targetPlatform.isHurd
202198 then
203199 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
204200 # in glibc, so add the right `-I' flags to the default spec string.
+1-5
pkgs/development/compilers/gcc/5/default.nix
···196196 '';
197197198198 postPatch =
199199- if (hostPlatform.isHurd
200200- || (libcCross != null # e.g., building `gcc.crossDrv'
201201- && libcCross ? crossConfig
202202- && libcCross.crossConfig == "i586-pc-gnu")
203203- || (crossGNU && libcCross != null))
199199+ if targetPlatform.isHurd
204200 then
205201 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
206202 # in glibc, so add the right `-I' flags to the default spec string.
+1-5
pkgs/development/compilers/gcc/6/default.nix
···196196 '';
197197198198 postPatch =
199199- if (hostPlatform.isHurd
200200- || (libcCross != null # e.g., building `gcc.crossDrv'
201201- && libcCross ? crossConfig
202202- && libcCross.crossConfig == "i586-pc-gnu")
203203- || (crossGNU && libcCross != null))
199199+ if targetPlatform.isHurd
204200 then
205201 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
206202 # in glibc, so add the right `-I' flags to the default spec string.
+1-5
pkgs/development/compilers/gcc/7/default.nix
···168168 patchShebangs $configureScript
169169 done
170170 '' + (
171171- if (hostPlatform.isHurd
172172- || (libcCross != null # e.g., building `gcc.crossDrv'
173173- && libcCross ? crossConfig
174174- && libcCross.crossConfig == "i586-pc-gnu")
175175- || (crossGNU && libcCross != null))
171171+ if targetPlatform.isHurd
176172 then
177173 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
178174 # in glibc, so add the right `-I' flags to the default spec string.
+1-5
pkgs/development/compilers/gcc/8/default.nix
···163163 patchShebangs $configureScript
164164 done
165165 '' + (
166166- if (hostPlatform.isHurd
167167- || (libcCross != null # e.g., building `gcc.crossDrv'
168168- && libcCross ? crossConfig
169169- && libcCross.crossConfig == "i586-pc-gnu")
170170- || (crossGNU && libcCross != null))
166166+ if targetPlatform.isHurd
171167 then
172168 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
173169 # in glibc, so add the right `-I' flags to the default spec string.
···138138 hardeningDisable = [ "format" ];
139139140140 postPatch =
141141- if (hostPlatform.isHurd
142142- || (libcCross != null # e.g., building `gcc.crossDrv'
143143- && libcCross ? crossConfig
144144- && libcCross.crossConfig == "i586-pc-gnu")
145145- || (crossGNU && libcCross != null))
141141+ if targetPlatform.isHurd
146142 then
147143 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
148144 # in glibc, so add the right `-I' flags to the default spec string.