Browse Source

Merge pull request #13545 from electron/fix-core-bluetooth-linking

Fix crash on startup on macOS 10.9 due to linking with CoreBluetooth
John Kleinschmidt 6 years ago
parent
commit
91be3f343f
1 changed files with 14 additions and 0 deletions
  1. 14 0
      brightray/brightray.gyp

+ 14 - 0
brightray/brightray.gyp

@@ -268,6 +268,20 @@
                 ],
               },
             }],
+            # In the OSX 10.10 SDK, CoreBluetooth became a top level framework.
+            # Previously, it was nested in IOBluetooth. In order for Chrome to run on
+            # OSes older than OSX 10.10, the top level CoreBluetooth framework must be
+            # weakly linked.
+            ['mac_sdk=="10.10" and libchromiumcontent_component==0', {
+              'direct_dependent_settings': {
+                'xcode_settings': {
+                  'OTHER_LDFLAGS': [
+                    '-weak_framework',
+                    'CoreBluetooth',
+                  ],
+                },
+              },
+            }],
           ]
         }],  # OS=="mac"
         ['OS=="win"', {