mesa: find prefixed nm when cross compiling
This commit is contained in:
parent
e9158eca70
commit
01698009ac
@ -101,6 +101,10 @@ stdenv.mkDerivation {
|
|||||||
'DATADIR "/drirc.d"' '"${placeholder "out"}/drirc.d"'
|
'DATADIR "/drirc.d"' '"${placeholder "out"}/drirc.d"'
|
||||||
substituteInPlace src/util/meson.build --replace \
|
substituteInPlace src/util/meson.build --replace \
|
||||||
"get_option('datadir')" "'${placeholder "out"}'"
|
"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";
|
outputs = [ "out" "dev" "drivers" ] ++ lib.optional enableOSMesa "osmesa";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user