Skip to content

Commit

Permalink
Misc (re pjsip#1562): pkgconfig removed duplicated framework name fro…
Browse files Browse the repository at this point in the history
…m 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
  • Loading branch information
nanangizz committed Oct 4, 2012
1 parent 6c80455 commit aa67427
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def calculate_pkg_priority(pkg, pkg_dict, loop_cnt):
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)

Expand Down

0 comments on commit aa67427

Please sign in to comment.