Merge pull request #212096 from boeyms/fix-darwin.dtrace
darwin.dtrace: Fix failing build
This commit is contained in:
commit
c5da2d2a89
@ -1,9 +1,9 @@
|
|||||||
{ appleDerivation, xcbuildHook, CoreSymbolication
|
{ appleDerivation, xcbuildHook, CoreSymbolication, apple_sdk
|
||||||
, xnu, bison, flex, darling, stdenv, fixDarwinDylibNames }:
|
, xnu, bison, flex, darling, stdenv, fixDarwinDylibNames }:
|
||||||
|
|
||||||
appleDerivation {
|
appleDerivation {
|
||||||
nativeBuildInputs = [ xcbuildHook flex bison fixDarwinDylibNames ];
|
nativeBuildInputs = [ xcbuildHook flex bison fixDarwinDylibNames ];
|
||||||
buildInputs = [ CoreSymbolication darling xnu ];
|
buildInputs = [ CoreSymbolication apple_sdk.frameworks.CoreSymbolication darling xnu ];
|
||||||
# -fcommon: workaround build failure on -fno-common toolchains:
|
# -fcommon: workaround build failure on -fno-common toolchains:
|
||||||
# duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o
|
# duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o
|
||||||
NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon";
|
NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon";
|
||||||
|
Loading…
Reference in New Issue
Block a user