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
This commit is contained in:
Nanang Izzuddin 2012-10-04 07:36:39 +00:00
parent 6c80455c1e
commit aa6742707e
1 changed files with 2 additions and 0 deletions

View File

@ -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)