mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #176393 from trofi/workaround-fno-common-for-darwin.dtrace
darwin.dtrace: add -fcommon workaround
This commit is contained in:
commit
70839a8f13
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@
|
|||
appleDerivation {
|
||||
nativeBuildInputs = [ xcbuildHook flex bison fixDarwinDylibNames ];
|
||||
buildInputs = [ CoreSymbolication darling xnu ];
|
||||
NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration";
|
||||
# -fcommon: workaround build failure on -fno-common toolchains:
|
||||
# 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_LDFLAGS = "-L./Products/Release";
|
||||
xcbuildFlags = [ "-target" "dtrace_frameworks" "-target" "dtrace" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue