* Patch that specifies the symbols to link on startup of modest in launcher.
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 27 Mar 2008 17:05:16 +0000 (17:05 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 27 Mar 2008 17:05:16 +0000 (17:05 +0000)
  Big speed up and reduction of memory consumption. Patch by Moiseichuk Leonid
  (thanks!). Fixes NB#83233.

pmo-trunk-r4350

src/Makefile.am
src/export.map [new file with mode: 0644]

index 2872a4e..adc3006 100644 (file)
@@ -136,11 +136,14 @@ endif
 
 
 modest_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
-modest_LDFLAGS = $(MAEMO_LAUNCHER_LIBS)
+modest_LDFLAGS = -Wl,--version-script=export.map
 
+modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
 modest_LDADD =                                                 \
+       $(filter-out $(modest_UNWANTED),                \
+       $(MAEMO_LAUNCHER_LIBS)                          \
        $(MODEST_GSTUFF_LIBS)                           \
-       $(MODEST_MOZEMBED_LIBS)                                 \
+       $(MODEST_MOZEMBED_LIBS)                         \
        $(MODEST_PLATFORM_LIBS)                         \
        $(MODEST_HILDON_WIDGETS_LIBS)                   \
        $(MODEST_HILDON_HELP_LIBS)                      \
@@ -148,7 +151,7 @@ modest_LDADD =                                              \
        $(MODEST_OGS_LIBS)                              \
        ${easysetupmaybe}                               \
        $(MODEST_PLATFORM)/libmodest-ui.la              \
-       widgets/libmodest-widgets.la
+       widgets/libmodest-widgets.la)
 
 
 if MODEST_HAVE_DBUS_API
diff --git a/src/export.map b/src/export.map
new file mode 100644 (file)
index 0000000..814b126
--- /dev/null
@@ -0,0 +1,22 @@
+{
+  global: 
+       _GLOBAL_OFFSET_TABLE_;
+       __exidx_end;
+       _bss_end__;
+       __bss_start__;
+       __dso_handle;
+       __libc_csu_fini;
+       __exidx_start;
+       _init;
+       __bss_end__;
+       _start;
+       __libc_csu_init;
+       main;
+       __end__;
+       _fini;
+       _edata;
+       _end;
+       _IO_stdin_used;
+       __data_start;
+  local: *;
+};