Merge pull request #193142 from yu-re-ka/libmediainfo

libmediainfo: fix cross-compilation
This commit is contained in:
superherointj 2022-09-28 16:57:47 -03:00 committed by GitHub
commit 09913928a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,12 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib ];
propagatedBuildInputs = [ libzen ];
postPatch = "cd Project/GNU/Library";
sourceRoot = "MediaInfoLib/Project/GNU/Library";
postPatch = lib.optionalString (stdenv.cc.targetPrefix != "") ''
substituteInPlace configure.ac \
--replace "pkg-config " "${stdenv.cc.targetPrefix}pkg-config "
'';
configureFlags = [ "--enable-shared" ];