Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-10-02 19:49:09 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:25:00 +0300
commita9966a11fc6d96e86fc75fc191e8eb1b63140fda (patch)
treea559eea759cda94708015e43041d8880ca9484a5 /common.pri
parentfa80cfa7276f6940fbb17d0cc7625043651c9982 (diff)
[linux] Build fixes
Diffstat (limited to 'common.pri')
-rw-r--r--common.pri3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.pri b/common.pri
index 6a69573824..235b27fcd7 100644
--- a/common.pri
+++ b/common.pri
@@ -110,6 +110,9 @@ unix|win32-g++ {
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_CFLAGS_RELEASE *= -ffast-math
QMAKE_CXXFLAGS_RELEASE *= -ffast-math
+ QMAKE_CFLAGS *= -fdata-sections -ffunction-sections
+ QMAKE_CXXFLAGS *= -fdata-sections -ffunction-sections
+ QMAKE_LFLAGS *= -Wl,--gc-sections
}
linux-g++* {