pkgconfig: Enable cross-compilation
(cherry picked from commit 91fdb2f9caf5ce14acb87f3b877216aeb2590e7e)
This commit is contained in:
parent
bef09dcca1
commit
6db707fe7e
@ -24,7 +24,15 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv;
|
buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv;
|
||||||
|
|
||||||
configureFlags = [ "--with-internal-glib" ]
|
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
|
postInstall = ''rm -f "$out"/bin/*-pkg-config''; # clean the duplicate file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user