summaryrefslogtreecommitdiffstats
path: root/mkspecs/symbian/linux-gcce/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/symbian/linux-gcce/qmake.conf')
-rw-r--r--mkspecs/symbian/linux-gcce/qmake.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/mkspecs/symbian/linux-gcce/qmake.conf b/mkspecs/symbian/linux-gcce/qmake.conf
index de3791c..c75e46e 100644
--- a/mkspecs/symbian/linux-gcce/qmake.conf
+++ b/mkspecs/symbian/linux-gcce/qmake.conf
@@ -53,17 +53,20 @@ DEFINES += __GCCE__ \
UNICODE \
_STLP_NO_EXCEPTION_HEADER
-QMAKE_LFLAGS_APP += --entry _E32Startup
+QMAKE_LFLAGS_APP += --entry=_E32Startup -u _E32Startup
QMAKE_LFLAGS_SHLIB += --default-symver --entry _E32Dll
QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
-gcceExtraFlags = --include=${EPOCROOT}epoc32/include/gcce/gcce.h -march=armv5t -mapcs -mthumb-interwork -nostdinc -c -fvisibility-inlines-hidden -msoft-float -T script
+gcceExtraFlags = --include=${EPOCROOT}/epoc32/include/gcce/gcce.h -march=armv5t -mapcs -mthumb-interwork -nostdinc -c -msoft-float -T script
QMAKE_CFLAGS += $${gcceExtraFlags}
-QMAKE_CXXFLAGS += $${gcceExtraFlags} -x c++ -fexceptions -fno-unit-at-a-time
+QMAKE_CXXFLAGS += $${gcceExtraFlags} -x c++ -fexceptions -fno-unit-at-a-time -fvisibility-inlines-hidden
+#If we are not going to link to Qt or qtmain.lib, we need to include this at least once.
+isEmpty(QT):contains(TEMPLATE, app) {
+ QMAKE_CXXFLAGS += --include=${EPOCROOT}/epoc32/include/stdapis/staticlibinit_gcce.h
+}
QMAKE_LFLAGS += --target1-abs \
--no-undefined \
- --strip-debug \
--nostdlib
QMAKE_LIBDIR += ${EPOCROOT}/epoc32/release/armv5/udeb/