Merge pull request #176394 from trofi/workaround-fno-common-for-darwin.file_cmds

darwin.file_cmds: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-09 17:23:01 +00:00 committed by GitHub
commit daa44b3509
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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