summaryrefslogtreecommitdiff
path: root/gyp/link.py
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-30 11:48:29 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:09 +0100
commit50d78fde85a6d2cee2e28f3681b4808b69133088 (patch)
tree99d764aee3f607f58d417d90b768512628330a09 /gyp/link.py
parent4b3689d18e2ef12ade8471b2f0c12db7d92a5e8d (diff)
downloadqtlocation-mapboxgl-50d78fde85a6d2cee2e28f3681b4808b69133088.tar.gz
fix install script
Diffstat (limited to 'gyp/link.py')
-rwxr-xr-xgyp/link.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/gyp/link.py b/gyp/link.py
index cab61aa9e6..347dfe7a2b 100755
--- a/gyp/link.py
+++ b/gyp/link.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import sys
+import os
from merge_static_libs import MergeLibs
args = sys.argv[1:]
@@ -31,4 +32,14 @@ while i < l:
i += 1
+flags.reverse()
+unique_flags = []
+for flag in flags:
+ if flag not in unique_flags:
+ unique_flags.append(flag)
+unique_flags.reverse()
+
+with open(out_lib + '.ldflags', 'w+') as f:
+ f.write(' '.join(unique_flags));
+
MergeLibs(in_libs, out_lib)