diff --git a/pkgs/gcc/gcc.yaml b/pkgs/gcc/gcc.yaml index 8710ab881..d6e103935 100644 --- a/pkgs/gcc/gcc.yaml +++ b/pkgs/gcc/gcc.yaml @@ -22,6 +22,16 @@ build_stages: patch -up1 < _hashdist/rpath.patch sed -i "s|@@ARTIFACT@@|${ARTIFACT}|g" gcc/config/i386/gnu-user.h gcc/config/i386/gnu-user64.h + - when: platform == 'Darwin' + name: fix_object_h + before: configure + handler: bash + bash: | + if [ -f /usr/include/dispatch/object.h ]; then + mkdir -p "$ARTIFACT/include/dispatch" + sed 's+typedef void (\^dispatch_block_t)(void)+typedef void* dispatch_block_t+' /usr/include/dispatch/object.h > "$ARTIFACT/include/dispatch/object.h" + fi + - name: link_lib64_to_lib after: install handler: bash