summaryrefslogtreecommitdiff
path: root/pkgconfig.py
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-03-11 15:09:56 -0500
committerJason Parker <jparker@digium.com>2013-03-11 15:09:56 -0500
commit483805f79570115ab95c69698792d238c1719b1b (patch)
tree6b53ab2fd2b2478f864ccc8bd1b0bfaedc4d2050 /pkgconfig.py
parentf3ab456a17af1c89a6e3be4d20c5944853df1cb0 (diff)
Import pjproject-2.1
Diffstat (limited to 'pkgconfig.py')
-rw-r--r--pkgconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgconfig.py b/pkgconfig.py
index 496e311..ee06884 100644
--- a/pkgconfig.py
+++ b/pkgconfig.py
@@ -163,7 +163,9 @@ if __name__ == "__main__":
continue
if REMOVE_THESE.count(opt) != 0:
continue
- if filtered_opts.count(opt) != 0:
+ 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)