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:
parent
2c1d3a9a82
commit
dfa36eda92
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, gettext, libgpgerror }:
|
{ buildPackages, stdenv, fetchurl, gettext, libgpgerror }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libksba-1.3.5";
|
name = "libksba-1.3.5";
|
||||||
|
@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ gettext ];
|
buildInputs = [ gettext ];
|
||||||
propagatedBuildInputs = [ libgpgerror ];
|
propagatedBuildInputs = [ libgpgerror ];
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
|
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $dev/bin
|
mkdir -p $dev/bin
|
||||||
|
|
Loading…
Reference in New Issue