Merge pull request #176393 from trofi/workaround-fno-common-for-darwin.dtrace

darwin.dtrace: add -fcommon workaround

authored by Sergei Trofimovich and committed by GitHub 70839a8f 4195de66

+3 -1
+3 -1
pkgs/os-specific/darwin/apple-source-releases/dtrace/default.nix
··· 4 4 appleDerivation { 5 5 nativeBuildInputs = [ xcbuildHook flex bison fixDarwinDylibNames ]; 6 6 buildInputs = [ CoreSymbolication darling xnu ]; 7 - NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration"; 7 + # -fcommon: workaround build failure on -fno-common toolchains: 8 + # duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o 9 + NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon"; 8 10 NIX_LDFLAGS = "-L./Products/Release"; 9 11 xcbuildFlags = [ "-target" "dtrace_frameworks" "-target" "dtrace" ]; 10 12