summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Khalikov <d.khalikov@partner.samsung.com>2018-04-04 09:16:08 (GMT)
committerDenis Khalikov <d.khalikov@partner.samsung.com>2018-04-04 10:55:32 (GMT)
commit38543bd004e08208a46f6ecd90dec568db5258d2 (patch)
tree2df5b6aec7159650c0658df44bee24a975bc5df1
parentf992d2e0c86961af60f3cc7f9e1f4d8c9de1f1a1 (diff)
downloadefl-theme-tizen-mobile-sandbox/denis13/asan.zip
efl-theme-tizen-mobile-sandbox/denis13/asan.tar.gz
efl-theme-tizen-mobile-sandbox/denis13/asan.tar.bz2
[ASan] Disable multithreaded build.sandbox/denis13/asan
Disable multithreaded build to fix out of memory error.
-rw-r--r--configure.ac7
-rw-r--r--mobile/Makefile.am11
-rw-r--r--packaging/efl-theme-tizen-mobile.spec2
3 files changed, 16 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 5d056bd..c07c74f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,13 @@ AC_INIT([efl-theme-tizen-mobile], [0.1], [jae.hwan.kim@samsung.com])
AM_INIT_AUTOMAKE([foreign])
+AC_ARG_ENABLE([threads],
+ [AC_HELP_STRING([--enable-threads], [Specify multithreaded build])],
+ [enable_threads=$enableval],
+ [enable_threads=yes])
+
+AM_CONDITIONAL([DISABLE_THREADS], [test x$enable_threads = xno])
+
# Checks for programs.
# Checks for libraries.
diff --git a/mobile/Makefile.am b/mobile/Makefile.am
index 7e9f9c5..3ed2ea6 100644
--- a/mobile/Makefile.am
+++ b/mobile/Makefile.am
@@ -9,9 +9,14 @@ EDJE_FLAGS = -no-save
SRC=efl-theme-tizen-mobile
DEFAULT_SRC=default
CSHARP_SRC=elm-sharp-theme
+if DISABLE_THREADS
+THREADS_OPTION=-nothreads
+else
+THREADS_OPTION=
+endif
all:
- edje_cc $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
+ edje_cc $(THREADS_OPTION) $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
-id ./HD/images/\
-id ./HD/images/Navigation_elements\
-id ./HD/images/Presentation_views\
@@ -22,7 +27,7 @@ all:
-id ./HD/images/Old\
-sd ./HD/sounds -fd ../objects \
$(SRC).edc $(SRC).edj;
- edje_cc $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
+ edje_cc $(THREADS_OPTION) $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
-id default/images/tizen-hd -sd default/sounds -fd ../objects \
-id ./HD/images/\
-id ./HD/images/Navigation_elements\
@@ -33,7 +38,7 @@ all:
-id ./HD/images/Emoticon\
-id ./HD/images/Old\
$(DEFAULT_SRC).edc $(DEFAULT_SRC).edj;
- edje_cc $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
+ edje_cc $(THREADS_OPTION) $(EDJE_FLAGS) $(EDJE_FLAGS_$(V)) \
-id default/images/tizen-hd -sd default/sounds -fd ../objects \
-id ./HD/images/\
-id ./HD/images/Navigation_elements\
diff --git a/packaging/efl-theme-tizen-mobile.spec b/packaging/efl-theme-tizen-mobile.spec
index 907a0ff..833870a 100644
--- a/packaging/efl-theme-tizen-mobile.spec
+++ b/packaging/efl-theme-tizen-mobile.spec
@@ -35,7 +35,7 @@ EFL themes for Elm-Sharp Mobile
%build
autoreconf -ivf
-%configure
+%configure %{?asan: --disable-threads}
export CFLAGS+=" --fPIC"
export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
make