@@ -8,6 +8,7 @@
88
99, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
1010, guile ? null
11+, safePaths ? [ stdenv.cc.cc.lib ]
1112
1213}:
1314
@@ -70,7 +71,7 @@ stdenv.mkDerivation rec {
7071 "--with-gmp=${gmp.dev}"
7172 "--with-mpfr=${mpfr.dev}"
7273 "--with-expat" "--with-libexpat-prefix=${expat.dev}"
73− "--with-auto-load-safe-path=${stdenv.cc.cc.lib}"
74+ "--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}"
7475 ] ++ stdenv.lib.optional (!pythonSupport) "--without-python";
7576
7677 postInstall =