[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add support for -weak_framework linking on Darwin

From: Sebastian Dröge
Subject: Add support for -weak_framework linking on Darwin
Date: Wed, 22 Oct 2014 13:04:43 +0200


please see attached patch to add support for -weak-framework linking on
Darwin. It replicates the logic that is already there for -framework.

-weak_framework allows linking to a Framework without having a strong
dependency on it at runtime. If the Framework is not there at runtime,
all its symbols are going to be NULL.

I'm not sure if the patch is 100% correct, please review. It works for
me in a project which fails to link otherwise as the dependency_libs /
inherited linker flags are not containing the -weak_frameworks but only
the -frameworks.

Best regards,
Sebastian Dröge, Centricular Ltd ·

Attachment: 0001-Add-support-for-weak_framework-linking-on-Darwin.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]