darwin.file_cmds: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream clang-11. Otherwise build fails as: duplicate symbol '_chdname' in: ar_io.o tty_subs.o
This commit is contained in:
parent
88e0f07bd6
commit
7d6048d0ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user