summaryrefslogtreecommitdiff
path: root/pkgconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkgconfig.py')
-rw-r--r--pkgconfig.py2
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)