Skip to content

Commit

Permalink
Merge pull request #40511 from obsidiansystems/gcc-hurd-condition
Browse files Browse the repository at this point in the history
gcc: Simplify this old Hurd condition
  • Loading branch information
Ericson2314 committed May 14, 2018
2 parents 73699a0 + 3a9654b commit ef779f8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 36 deletions.
7 changes: 1 addition & 6 deletions pkgs/development/compilers/gcc/4.5/default.nix
Expand Up @@ -151,12 +151,7 @@ stdenv.mkDerivation ({
;

postPatch =
if (stdenv.system == "i586-pc-gnu"
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (targetPlatform != hostPlatform && targetPlatform.config == "i586-pc-gnu"
&& libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/4.8/default.nix
Expand Up @@ -193,11 +193,7 @@ stdenv.mkDerivation ({
libc_dev = stdenv.cc.libc_dev;

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/4.9/default.nix
Expand Up @@ -202,11 +202,7 @@ stdenv.mkDerivation ({
libc_dev = stdenv.cc.libc_dev;

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/5/default.nix
Expand Up @@ -204,11 +204,7 @@ stdenv.mkDerivation ({
'';

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/6/default.nix
Expand Up @@ -204,11 +204,7 @@ stdenv.mkDerivation ({
'';

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/7/default.nix
Expand Up @@ -204,11 +204,7 @@ stdenv.mkDerivation ({
'';

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/compilers/gcc/snapshot/default.nix
Expand Up @@ -183,11 +183,7 @@ stdenv.mkDerivation ({
hardeningDisable = [ "format" ];

postPatch =
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
&& libcCross.crossConfig == "i586-pc-gnu")
|| (crossGNU && libcCross != null))
if targetPlatform.isHurd
then
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
# in glibc, so add the right `-I' flags to the default spec string.
Expand Down

0 comments on commit ef779f8

Please sign in to comment.