message: build: fix build on macOS
diff: 'defines': [
  'CURL_STATICLIB',
  ],
  - 'libraries': [
  - '<!@(<(curl_config_bin) --static-libs)',
  - ],
  'xcode_settings': {
  + 'OTHER_LDFLAGS': [
  + # HACK: -framework CoreFoundation appears twice, but CoreFoundation is a singleton
  + # because it doesn't start with a -. We need to remove one of the instances of
  + # -framework CoreFoundation or GYP will break our args.
  + # This seems to be required starting with xcode 12
  + # original workaround from https://github.com/JCMais/node-libcurl/pull/312
  + '-static',
  + '<!@(<(curl_config_bin) --static-libs | sed "s/-framework CoreFoundation//")',
  + ],
  +
  'LD_RUNPATH_SEARCH_PATHS': [
  '<!@(<(curl_config_bin) --static-libs | node -e "console.log(require(\'fs\').readFileSync(0, \'utf-8\').split(\' \').filter(i => i.startsWith(\'-L\')).join(\' \').replace(/-L/g, \'\'))")'
  ],
  