guile_1_8, guile_2_0: set std=gnu17 to fix build with gcc15 (#476723)
This commit is contained in:
@@ -65,6 +65,10 @@ stdenv.mkDerivation rec {
|
||||
./CVE-2016-8605.patch
|
||||
];
|
||||
|
||||
env = {
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
sed -e '/lt_dlinit/a lt_dladdsearchdir("'$out/lib'");' -i libguile/dynl.c
|
||||
'';
|
||||
|
||||
@@ -116,6 +116,10 @@ builder rec {
|
||||
"--without-threads"
|
||||
];
|
||||
|
||||
env = {
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin"
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user