gcc: Simplify this old Hurd condition
Steps towards getting rid of crossConfig.
commit3a9654bfe29ebd987b7426faa25f00af1fab02c5
authorJohn Ericson <John.Ericson@Obsidian.Systems>
dateMon 14 May 2018, 13:13 (9 years ago)
parentba17246
pkgs/development/compilers/gcc/4.5/default.nix+1−6
@@ -151,12 +151,7 @@ stdenv.mkDerivation ({
151151 ;
152152
153153 postPatch =
154− if (stdenv.system == "i586-pc-gnu"
155− || (libcCross != null # e.g., building `gcc.crossDrv'
156− && libcCross ? crossConfig
157− && libcCross.crossConfig == "i586-pc-gnu")
158− || (targetPlatform != hostPlatform && targetPlatform.config == "i586-pc-gnu"
159− && libcCross != null))
154+ if targetPlatform.isHurd
160155 then
161156 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
162157 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/4.8/default.nix+1−5
@@ -193,11 +193,7 @@ stdenv.mkDerivation ({
193193 libc_dev = stdenv.cc.libc_dev;
194194
195195 postPatch =
196− if (hostPlatform.isHurd
197− || (libcCross != null # e.g., building `gcc.crossDrv'
198− && libcCross ? crossConfig
199− && libcCross.crossConfig == "i586-pc-gnu")
200− || (crossGNU && libcCross != null))
196+ if targetPlatform.isHurd
201197 then
202198 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
203199 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/4.9/default.nix+1−5
@@ -188,11 +188,7 @@ stdenv.mkDerivation ({
188188 libc_dev = stdenv.cc.libc_dev;
189189
190190 postPatch =
191− if (hostPlatform.isHurd
192− || (libcCross != null # e.g., building `gcc.crossDrv'
193− && libcCross ? crossConfig
194− && libcCross.crossConfig == "i586-pc-gnu")
195− || (crossGNU && libcCross != null))
191+ if targetPlatform.isHurd
196192 then
197193 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
198194 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/5/default.nix+1−5
@@ -204,11 +204,7 @@ stdenv.mkDerivation ({
204204 '';
205205
206206 postPatch =
207− if (hostPlatform.isHurd
208− || (libcCross != null # e.g., building `gcc.crossDrv'
209− && libcCross ? crossConfig
210− && libcCross.crossConfig == "i586-pc-gnu")
211− || (crossGNU && libcCross != null))
207+ if targetPlatform.isHurd
212208 then
213209 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
214210 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/6/default.nix+1−5
@@ -204,11 +204,7 @@ stdenv.mkDerivation ({
204204 '';
205205
206206 postPatch =
207− if (hostPlatform.isHurd
208− || (libcCross != null # e.g., building `gcc.crossDrv'
209− && libcCross ? crossConfig
210− && libcCross.crossConfig == "i586-pc-gnu")
211− || (crossGNU && libcCross != null))
207+ if targetPlatform.isHurd
212208 then
213209 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
214210 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/7/default.nix+1−5
@@ -204,11 +204,7 @@ stdenv.mkDerivation ({
204204 '';
205205
206206 postPatch =
207− if (hostPlatform.isHurd
208− || (libcCross != null # e.g., building `gcc.crossDrv'
209− && libcCross ? crossConfig
210− && libcCross.crossConfig == "i586-pc-gnu")
211− || (crossGNU && libcCross != null))
207+ if targetPlatform.isHurd
212208 then
213209 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
214210 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/snapshot/default.nix+1−5
@@ -183,11 +183,7 @@ stdenv.mkDerivation ({
183183 hardeningDisable = [ "format" ];
184184
185185 postPatch =
186− if (hostPlatform.isHurd
187− || (libcCross != null # e.g., building `gcc.crossDrv'
188− && libcCross ? crossConfig
189− && libcCross.crossConfig == "i586-pc-gnu")
190− || (crossGNU && libcCross != null))
186+ if targetPlatform.isHurd
191187 then
192188 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
193189 # in glibc, so add the right `-I' flags to the default spec string.