From eb326c9cb7e76d66672641175c9163445a47aedd Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 6 Sep 2017 14:12:51 -0400 Subject: [PATCH] macos-sierra-shared: Fix, after binutils-wrapper broke it cctool's as needs to be told use to use gnu as, or else we'd need a dependency cycle between cctools and clang for this case. In general, this is not a problem because clang uses its own integrated assembler where possible, and gnu as otherwise. --- .../binutils-wrapper/macos-sierra-reexport-hack.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/binutils-wrapper/macos-sierra-reexport-hack.bash b/pkgs/build-support/binutils-wrapper/macos-sierra-reexport-hack.bash index b7aa7ea5c09..c3077e869e7 100644 --- a/pkgs/build-support/binutils-wrapper/macos-sierra-reexport-hack.bash +++ b/pkgs/build-support/binutils-wrapper/macos-sierra-reexport-hack.bash @@ -81,8 +81,10 @@ else symbolBloatObject=$outputNameLibless-symbol-hack.o if [[ ! -e $symbolBloatObject ]]; then + # `-Q` means use GNU Assembler rather than Clang, avoiding an awkward + # dependency cycle. printf '.private_extern _______child_hack_foo\nchild_hack_foo:\n' \ - | @binPrefix@as -- -o $symbolBloatObject + | @binPrefix@as -Q -- -o $symbolBloatObject fi # first half of libs