Merge pull request #176351 from trofi/workaround-fno-common-for-darwin.top

darwin.top: add -fcommon workaround

authored by

Sergei Trofimovich and committed by
GitHub
f436bf11 efb6d291

+3
+3
pkgs/os-specific/darwin/apple-source-releases/top/default.nix
··· 3 appleDerivation { 4 nativeBuildInputs = [ xcbuildHook ]; 5 buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ]; 6 NIX_LDFLAGS = "-lutil"; 7 installPhase = '' 8 install -D Products/Release/libtop.a $out/lib/libtop.a
··· 3 appleDerivation { 4 nativeBuildInputs = [ xcbuildHook ]; 5 buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ]; 6 + # Workaround build failure on -fno-common toolchains: 7 + # duplicate symbol '_tsamp' in: main.o top.o 8 + NIX_CFLAGS_COMPILE = "-fcommon"; 9 NIX_LDFLAGS = "-lutil"; 10 installPhase = '' 11 install -D Products/Release/libtop.a $out/lib/libtop.a