[linux] Fixed build errors

This commit is contained in:
Alex Zolotarev 2011-11-01 12:48:49 +01:00 committed by Alex Zolotarev
parent 64ebd99c4c
commit b461c5a60f
2 changed files with 5 additions and 5 deletions

View file

@ -117,11 +117,9 @@ unix|win32-g++ {
}
linux-g++* {
QMAKE_CC = gcc-4.5
QMAKE_CXX = g++-4.5
QMAKE_CFLAGS_RELEASE += -flto
QMAKE_CXXFLAGS_RELEASE += -flto
QMAKE_LFLAGS_RELEASE += -flto
# QMAKE_CFLAGS_RELEASE += -flto
# QMAKE_CXXFLAGS_RELEASE += -flto
# QMAKE_LFLAGS_RELEASE += -flto
QMAKE_CFLAGS *= -fdata-sections -ffunction-sections
QMAKE_CXXFLAGS *= -fdata-sections -ffunction-sections
QMAKE_LFLAGS *= -Wl,--gc-sections

View file

@ -1,5 +1,7 @@
#include "platform.hpp"
#include "../base/logging.hpp"
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>