forked from organicmaps/organicmaps
[linux] Build fixes
This commit is contained in:
parent
fa80cfa727
commit
a9966a11fc
3 changed files with 8 additions and 3 deletions
|
@ -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++* {
|
||||
|
|
|
@ -6,7 +6,7 @@ CONFIG -= app_bundle
|
|||
TEMPLATE = app
|
||||
|
||||
ROOT_DIR = ../..
|
||||
DEPENDENCIES = map yg indexer platform geometry coding base freetype fribidi expat
|
||||
DEPENDENCIES = map indexer platform geometry coding base
|
||||
|
||||
include($$ROOT_DIR/common.pri)
|
||||
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
static bool GetUserWritableDir(string & outDir)
|
||||
#define LOCALAPPDATA_DIR "MapsWithMe"
|
||||
|
||||
bool GetUserWritableDir(string & outDir)
|
||||
{
|
||||
char * path = ::getenv("HOME");
|
||||
if (path)
|
||||
|
@ -18,7 +20,7 @@ static bool GetUserWritableDir(string & outDir)
|
|||
}
|
||||
|
||||
/// @return full path including binary itself
|
||||
static bool GetPathToBinary(string & outPath)
|
||||
bool GetPathToBinary(string & outPath)
|
||||
{
|
||||
char path[4096] = {0};
|
||||
if (0 < ::readlink("/proc/self/exe", path, ARRAY_SIZE(path)))
|
||||
|
|
Loading…
Add table
Reference in a new issue