about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-09 17:23:01 +0000
committerGitHub <noreply@github.com>2022-06-09 17:23:01 +0000
commitdaa44b350905d59be1d956d6b09a140e0fbf0f12 (patch)
tree83d6f4efcf8ed6ee374e69d164f8c02e4103db44
parent947e2c6fb547da670d9bcf1a9e2a259365435d96 (diff)
parent7d6048d0adac9b952e3f9c8b9f8fadde514c9324 (diff)
Merge pull request #176394 from trofi/workaround-fno-common-for-darwin.file_cmds
darwin.file_cmds: add -fcommon workaround
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix
index 981e1370437d6..cfa66d2c35363 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix
@@ -17,6 +17,10 @@ appleDerivation {
     sed -i -re "s/name = ([a-zA-Z]+);/name = \1; productName = \1;/" file_cmds.xcodeproj/project.pbxproj
   '';
 
+  # Workaround build failure on -fno-common toolchains:
+  #   duplicate symbol '_chdname' in: ar_io.o tty_subs.o
+  NIX_CFLAGS_COMPILE = "-fcommon";
+
   # temporary install phase until xcodebuild has "install" support
   installPhase = ''
     for f in Products/Release/*; do