summaryrefslogtreecommitdiff
path: root/pkgconfig.py
diff options
context:
space:
mode:
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)