From aa6742707e8c7d6376e45b680d5a9863119dd527 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Thu, 4 Oct 2012 07:36:39 +0000 Subject: [PATCH] Misc (re #1562): pkgconfig removed duplicated framework name from Libs without removing the '-framework' option itself, which caused link error. git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4276 74dad513-b988-da41-8d7b-12977e46ad98 --- pkgconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgconfig.py b/pkgconfig.py index 300045fa0..ee068847d 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)