Merge pull request #33575 from dtzWill/fix/cross-1

Minor cross fixes, 1
This commit is contained in:
John Ericson
2018-01-09 12:34:50 -05:00
committed by GitHub
7 changed files with 36 additions and 16 deletions

View File

@@ -24,7 +24,15 @@ stdenv.mkDerivation rec {
buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv;
configureFlags = [ "--with-internal-glib" ]
++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ];
++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ]
# Can't run these tests while cross-compiling
++ optional (stdenv.hostPlatform != stdenv.buildPlatform)
[ "glib_cv_stack_grows=no"
"glib_cv_uscore=no"
"ac_cv_func_posix_getpwuid_r=yes"
"ac_cv_func_posix_getgrgid_r=yes"
];
postInstall = ''rm -f "$out"/bin/*-pkg-config''; # clean the duplicate file