Merge pull request #271004 from mattpolzin/graphite2-fix-cross-compilation

graphite2: fix cross-compilation
This commit is contained in:
7c6f434c 2023-12-01 05:34:18 +00:00 committed by GitHub
commit 8122b5899e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,10 @@ stdenv.mkDerivation rec {
# https://github.com/silnrsi/graphite/pull/74
substituteInPlace tests/CMakeLists.txt \
--replace 'add_subdirectory(nametabletest)' '#add_subdirectory(nametabletest)'
# support cross-compilation by using target readelf binary:
substituteInPlace Graphite.cmake \
--replace 'readelf' "${stdenv.cc.targetPrefix}readelf"
'';
cmakeFlags = lib.optionals static [