Skip to content

Commit

Permalink
gccgo6: fix build w/glibc-2.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 committed Jan 15, 2023
1 parent 19695f3 commit 5325ef1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/compilers/gcc/6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ let majorVersion = "6";
++ optional langAda ./gnat-glibc234.patch
++ optional langFortran ../gfortran-driving.patch
++ optional (targetPlatform.libc == "musl") ../libgomp-dont-force-initial-exec.patch
++ optional langGo ./gogcc-workaround-glibc-2.36.patch

# Obtain latest patch with ../update-mcfgthread-patches.sh
++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch
Expand Down
14 changes: 14 additions & 0 deletions pkgs/development/compilers/gcc/6/gogcc-workaround-glibc-2.36.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index dd456e907..24e607c7b 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -148,9 +148,6 @@ cat > sysinfo.c <<EOF
#if defined(HAVE_LINUX_ETHER_H)
#include <linux/ether.h>
#endif
-#if defined(HAVE_LINUX_FS_H)
-#include <linux/fs.h>
-#endif
#if defined(HAVE_LINUX_REBOOT_H)
#include <linux/reboot.h>
#endif

0 comments on commit 5325ef1

Please sign in to comment.