diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2012-10-04 07:36:39 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2012-10-04 07:36:39 +0000 |
commit | 5565dcc230479d62ffc3e87a21eb656a0d79242a (patch) | |
tree | 4de94f6186aced465a33c8988408ad0d8cf8eed8 | |
parent | c2ede788507ad621f7f7120d287bbca9a48c9148 (diff) |
Misc (re #1562): pkgconfig removed duplicated framework name from Libs without removing the '-framework' option itself, which caused link error.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4276 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pkgconfig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgconfig.py b/pkgconfig.py index 300045fa..ee068847 100644 --- a/pkgconfig.py +++ b/pkgconfig.py @@ -164,6 +164,8 @@ if __name__ == "__main__": if REMOVE_THESE.count(opt) != 0: continue if opt != '-framework' and opt != '--framework' and filtered_opts.count(opt) != 0: + if len(filtered_opts) and (filtered_opts[-1] == '-framework' or filtered_opts[-1] == '--framework'): + filtered_opts.pop() continue filtered_opts.append(opt) |