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

darwin.top: add -fcommon workaround
main
Sergei Trofimovich 2 years ago committed by GitHub
commit f436bf1145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkgs/os-specific/darwin/apple-source-releases/top/default.nix

@ -3,6 +3,9 @@
appleDerivation {
nativeBuildInputs = [ xcbuildHook ];
buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ];
# Workaround build failure on -fno-common toolchains:
# duplicate symbol '_tsamp' in: main.o top.o
NIX_CFLAGS_COMPILE = "-fcommon";
NIX_LDFLAGS = "-lutil";
installPhase = ''
install -D Products/Release/libtop.a $out/lib/libtop.a

Loading…
Cancel
Save