50629.cross compile libksba (#50649)

* Fix cross-compilation of libksba.

This explicitly points libksba configure script at the correct prefix for libgpgerror with dev tools.

It also provides a build-system compiler so that the asn1-gentables.c build helper can be compiled and run
on the build system.
This commit is contained in:
Jean-Paul Calderone 2018-11-18 20:04:21 -05:00 committed by Matthew Bauer
parent 2c1d3a9a82
commit dfa36eda92

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gettext, libgpgerror }:
{ buildPackages, stdenv, fetchurl, gettext, libgpgerror }:
stdenv.mkDerivation rec {
name = "libksba-1.3.5";
@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ gettext ];
propagatedBuildInputs = [ libgpgerror ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ];
postInstall = ''
mkdir -p $dev/bin