mesa: find prefixed nm when cross compiling

This commit is contained in:
Atemu 2020-12-13 07:41:02 +01:00
parent e9158eca70
commit 01698009ac

View file

@ -101,6 +101,10 @@ stdenv.mkDerivation {
'DATADIR "/drirc.d"' '"${placeholder "out"}/drirc.d"'
substituteInPlace src/util/meson.build --replace \
"get_option('datadir')" "'${placeholder "out"}'"
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
substituteInPlace meson.build --replace \
"find_program('nm')" \
"find_program('${stdenv.cc.targetPrefix}nm')"
'';
outputs = [ "out" "dev" "drivers" ] ++ lib.optional enableOSMesa "osmesa";