[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH 27/31] gnu: pkg-config: Fix cross-compilation.
From: |
Ricardo Wurmus |
Subject: |
[bug#36477] [PATCH 27/31] gnu: pkg-config: Fix cross-compilation. |
Date: |
Thu, 25 Jul 2019 21:04:24 +0200 |
User-agent: |
mu4e 1.2.0; emacs 26.2 |
Mathieu Othacehe <address@hidden> writes:
>> Are these indicative of a problem in our cross stack, or a bug in the
>> pkg-config build system/code?
>>
>> LGTM anyway.
>
> No those bits seems to be needed because of a problem in pkg-config
> itself. See this nixpkg pkg-config package snippet:
>
> --8<---------------cut here---------------start------------->8---
> configureFlags = [ "--with-internal-glib" ]
> ++ 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"
> ];
> --8<---------------cut here---------------end--------------->8---
In this case it would be good to add a comment so that our future selves
won’t be confused.
Thanks!
--
Ricardo
- [bug#36477] [PATCH 26/31] gnu: tcsh: Fix cross-compilation., (continued)
[bug#36477] [PATCH 21/31] gnu: mit-krb5: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 17/31] gnu: texinfo-5: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 28/31] gnu: mkfontdir: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 27/31] gnu: pkg-config: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 29/31] gnu: alsa-utils: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 31/31] gnu: glibc-utf8-locales: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 18/31] gnu: bc: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 00/31] Fix cross-compilation issues, Marius Bakke, 2019/07/08