libiodbc: fix build with gcc15 (#476332)

This commit is contained in:
Aleksana
2026-01-03 07:31:51 +00:00
committed by GitHub
+4
View File
@@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals useGTK [ gtk2 ];
# temporary workaround for compile error with GCC 15
# https://github.com/openlink/iODBC/issues/113
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
preBuild = ''
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
'';