-AOSKIT_FRAMEWORK[sdk=macosx*] = -framework AOSAccounts
+AOSKIT_FRAMEWORK[sdk=macosx*] = -weak_framework AOSAccounts -weak_framework AOSAccountsLite
APPLE_AKS_LIBRARY[sdk=macosx*] = -L$(SDKROOT)/usr/local/lib -laks -framework MobileKeyBag
APPLE_AKS_LIBRARY[sdk=iphoneos*] = -L$(SDKROOT)/usr/local/lib -laks -framework MobileKeyBag
APPLE_AKS_LIBRARY[sdk=watchos*] = -L$(SDKROOT)/usr/local/lib -laks -framework MobileKeyBag
OTHER_LDFLAGS_LIBCMS[sdk=embedded*] = -lCMS
OTHER_LDFLAGS_MOBILEGESTALT[sdk=embedded*] = -lMobileGestalt
+OTHER_LDFLAGS_CRASHREPORTER[sdk=embedded] = -framework CrashReporterSupport
+OTHER_LDFLAGS_CRASHREPORTER[sdk=macos*] = -framework CrashReporterSupport
+
+OTHER_CODE_SIGN_FLAGS_LIBRARY_VALIDATION = -o library
+OTHER_CODE_SIGN_FLAGS_LIBRARY_VALIDATION[sdk=*simulator*] =
+
//
// Play games to avoid issues with bridge trains
//
OTHER_LDFLAGS_CLOUDKIT_BRIDGE_YES =
OTHER_LDFLAGS_CLOUDKIT = $(OTHER_LDFLAGS_CLOUDKIT_BRIDGE_$(BRIDGE))
+OTHER_LDFLAGS_PREQUELITE_BRIDGE_NO = -l prequelite
+OTHER_LDFLAGS_PREQUELITE_BRIDGE_YES =
+OTHER_LDFLAGS_PREQUELITE = $(OTHER_LDFLAGS_PREQUELITE_BRIDGE_$(BRIDGE))
+
+OTHER_LDFLAGS_ACCOUNTS_BRIDGE_NO = -framework Accounts
+OTHER_LDFLAGS_ACCOUNTS_BRIDGE_YES =
+OTHER_LDFLAGS_ACCOUNTS = $(OTHER_LDFLAGS_ACCOUNTS_BRIDGE_$(BRIDGE))
+
+OTHER_LDFLAGS_APPLEACCOUNT_IOS_NO = -framework AppleAccount
+OTHER_LDFLAGS_APPLEACCOUNT_IOS_YES =
+
+OTHER_LDFLAGS_APPLEACCOUNT[sdk=iphoneos*] = $(OTHER_LDFLAGS_APPLEACCOUNT_IOS_$(BRIDGE))
+OTHER_LDFLAGS_APPLEACCOUNT[sdk=iphonesimulator*] = $(OTHER_LDFLAGS_APPLEACCOUNT_IOS_$(BRIDGE))
+OTHER_LDFLAGS_APPLEACCOUNT[sdk=appletv*] = $(OTHER_LDFLAGS_APPLEACCOUNT_IOS_$(BRIDGE))
+OTHER_LDFLAGS_APPLEACCOUNT[sdk=watchos*] = $(OTHER_LDFLAGS_APPLEACCOUNT_IOS_$(BRIDGE))
+
+OTHER_LDFLAGS_CORECDP_BRIDGE_NO = -framework CoreCDP
+OTHER_LDFLAGS_CORECDP_BRIDGE_YES =
+OTHER_LDFLAGS_CORECDP = $(OTHER_LDFLAGS_CORECDP_BRIDGE_$(BRIDGE))
+
// The bridge appears to support protocol buffers.
OTHER_LDFLAGS_PROTOBUF = -framework ProtocolBuffer
OTHER_LDFLAGS_SECURITYFOUNDATION_BRIDGE_NO = -framework SecurityFoundation
OTHER_LDFLAGS_SECURITYFOUNDATION_BRIDGE_YES =
OTHER_LDFLAGS_SECURITYFOUNDATION = $(OTHER_LDFLAGS_SECURITYFOUNDATION_BRIDGE_$(BRIDGE))
+
+// Breaks the BaseSystem: fixing in <rdar://problem/36166435> Re-enable IMCore autosysdiagnose capture to securityd
+//OTHER_LDFLAGS_IMCORE_BRIDGE_NO = -framework IMCore
+//OTHER_LDFLAGS_IMCORE_BRIDGE_YES =
+OTHER_LDFLAGS_IMCORE = $(OTHER_LDFLAGS_IMCORE_BRIDGE_$(BRIDGE))
+OTHER_LDFLAGS_IMCORE[sdk=appletv*] =