git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40509 from obsidiansystems/gcc-hurd-condition

gcc: Simplify this old Hurd condition

commit405f9d10efc56d8f6080cf8b46d95e6774d40d4f authorJohn Ericson <Ericson2314@yahoo.com> dateMon 14 May 2018, 13:26 (9 years ago) parentefde5febf7d1ba
7 files changed+7−35
pkgs/development/compilers/gcc/4.8/default.nix+1−5 pkgs/development/compilers/gcc/4.9/default.nix+1−5 pkgs/development/compilers/gcc/5/default.nix+1−5 pkgs/development/compilers/gcc/6/default.nix+1−5 pkgs/development/compilers/gcc/7/default.nix+1−5 pkgs/development/compilers/gcc/8/default.nix+1−5 pkgs/development/compilers/gcc/snapshot/default.nix+1−5
pkgs/development/compilers/gcc/4.8/default.nix+1−5
@@ -184,11 +184,7 @@ stdenv.mkDerivation ({
184184 libc_dev = stdenv.cc.libc_dev;
185185
186186 postPatch =
187− if (hostPlatform.isHurd
188− || (libcCross != null # e.g., building `gcc.crossDrv'
189− && libcCross ? crossConfig
190− && libcCross.crossConfig == "i586-pc-gnu")
191− || (crossGNU && libcCross != null))
187+ if targetPlatform.isHurd
192188 then
193189 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
194190 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/4.9/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/5/default.nix+1−5
@@ -195,11 +195,7 @@ stdenv.mkDerivation ({
195195 '';
196196
197197 postPatch =
198− if (hostPlatform.isHurd
199− || (libcCross != null # e.g., building `gcc.crossDrv'
200− && libcCross ? crossConfig
201− && libcCross.crossConfig == "i586-pc-gnu")
202− || (crossGNU && libcCross != null))
198+ if targetPlatform.isHurd
203199 then
204200 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
205201 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/6/default.nix+1−5
@@ -195,11 +195,7 @@ stdenv.mkDerivation ({
195195 '';
196196
197197 postPatch =
198− if (hostPlatform.isHurd
199− || (libcCross != null # e.g., building `gcc.crossDrv'
200− && libcCross ? crossConfig
201− && libcCross.crossConfig == "i586-pc-gnu")
202− || (crossGNU && libcCross != null))
198+ if targetPlatform.isHurd
203199 then
204200 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
205201 # 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 patchShebangs $configureScript
205205 done
206206 '' + (
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/8/default.nix+1−5
@@ -162,11 +162,7 @@ stdenv.mkDerivation ({
162162 patchShebangs $configureScript
163163 done
164164 '' + (
165− if (hostPlatform.isHurd
166− || (libcCross != null # e.g., building `gcc.crossDrv'
167− && libcCross ? crossConfig
168− && libcCross.crossConfig == "i586-pc-gnu")
169− || (crossGNU && libcCross != null))
165+ if targetPlatform.isHurd
170166 then
171167 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
172168 # in glibc, so add the right `-I' flags to the default spec string.
pkgs/development/compilers/gcc/snapshot/default.nix+1−5
@@ -174,11 +174,7 @@ stdenv.mkDerivation ({
174174 hardeningDisable = [ "format" ];
175175
176176 postPatch =
177− if (hostPlatform.isHurd
178− || (libcCross != null # e.g., building `gcc.crossDrv'
179− && libcCross ? crossConfig
180− && libcCross.crossConfig == "i586-pc-gnu")
181− || (crossGNU && libcCross != null))
177+ if targetPlatform.isHurd
182178 then
183179 # On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
184180 # in glibc, so add the right `-I' flags to the default spec string.