summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-10-10 18:17:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-16 17:10:15 +0200
commit15188f25990e8c10b180e6532cdb6e855ef20200 (patch)
treebf6e9decc71e5d514bd9fba11711d4148cb11581 /configure
parentc0264050938c04723f7dc9295ef87cf41ab7a8ae (diff)
de-duplicate QMAKE_DEFAULT_LIBDIRS after all
but this time without reshuffling it. it's actually easy with awk. this makes the resulting qconfig.pri cleaner (and thus easier to debug). and configure needs a few millisecs less to finish. ^^ QMAKE_DEFAULT_INCDIRS doesn't appear to contain dupes to start with. Change-Id: I9eed2cf853cd15d0d24a885b1c3d69f22ffafb36 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index f7d770acef..afd850ab7b 100755
--- a/configure
+++ b/configure
@@ -3070,7 +3070,10 @@ $1 == "LIBRARY_PATH" {
print "DEFAULT_LIBDIRS=\"";
for (lib in library_paths) {
dir = normalize(library_paths[lib]);
- print quote(dir) " ";
+ if (!(dir in dirs)) {
+ print quote(dir) " ";
+ dirs[dir] = 1;
+ }
}
print "\"\n"
}