diff --git a/pkgs/development/compilers/openjdk/8.nix b/pkgs/development/compilers/openjdk/8.nix index 2cf3389d3fc6..e82f40fc089e 100644 --- a/pkgs/development/compilers/openjdk/8.nix +++ b/pkgs/development/compilers/openjdk/8.nix @@ -110,8 +110,8 @@ let # The configure script was confused by our passing these with full paths, # so we explicitly override them to short variants. + '' - CC=cc - CXX=c++ + CC=${stdenv.cc.targetPrefix}cc + CXX=${stdenv.cc.targetPrefix}c++ ''; configureFlags = [