mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
Merge pull request #271004 from mattpolzin/graphite2-fix-cross-compilation
graphite2: fix cross-compilation
This commit is contained in:
commit
8122b5899e
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user