mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-01 18:17:21 +03:00
Merge pull request #176351 from trofi/workaround-fno-common-for-darwin.top
darwin.top: add -fcommon workaround
This commit is contained in:
commit
f436bf1145
@ -3,6 +3,9 @@
|
|||||||
appleDerivation {
|
appleDerivation {
|
||||||
nativeBuildInputs = [ xcbuildHook ];
|
nativeBuildInputs = [ xcbuildHook ];
|
||||||
buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ];
|
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";
|
NIX_LDFLAGS = "-lutil";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D Products/Release/libtop.a $out/lib/libtop.a
|
install -D Products/Release/libtop.a $out/lib/libtop.a
|
||||||
|
Loading…
Reference in New Issue
Block a user