summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
-rw-r--r--src/Makefile_Eina.am7
-rw-r--r--src/Makefile_Evas.am1
3 files changed, 10 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 06f52a7774..aa8582dc0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -849,7 +849,7 @@ case "${build_profile}" in
dev)
with_max_log_level=""
have_stringshare_usage="no"
- want_valgrind="no" # TODO: "yes" is not working: relocation R_X86_64_32S against `vgPlain_interim_stack' can not be used when making a shared object; recompile with -fPIC
+ want_valgrind="yes"
want_debug_malloc="no"
want_debug_threads="no"
want_default_mempool="no"
@@ -858,7 +858,7 @@ case "${build_profile}" in
debug)
with_max_log_level=""
have_stringshare_usage="yes"
- want_valgrind="no" # TODO: "yes" is not working: relocation R_X86_64_32S against `vgPlain_interim_stack' can not be used when making a shared object; recompile with -fPIC
+ want_valgrind="yes"
want_debug_malloc="yes"
want_debug_threads="yes"
want_default_mempool="yes"
@@ -899,11 +899,11 @@ requirements_pc_eina="${requirements_pc_eina} ${platform_pc}"
## Options
# Valgrind
-
-EFL_OPTIONAL_DEPEND_PKG([eina], [${want_valgrind}],
- [VALGRIND], [valgrind >= 2.4.0])
if test "x${have_valgrind}" = "xno"; then
AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
+else
+ PKG_CHECK_MODULES([VALGRIND], [valgrind >= 2.4.0])
+ AC_DEFINE([HAVE_VALGRIND], [1], [Valgrind support enabled])
fi
AC_DEFINE_IF([EINA_DEBUG_MALLOC],
@@ -1502,9 +1502,6 @@ requirements_pc_evas="eo >= ${PACKAGE_VERSION} eet >= ${PACKAGE_VERSION} eina >=
EFL_DEPEND_PKG([evas], [FREETYPE], [freetype2 >= 9.3.0])
## optional dependencies
-# Valgrind
-EFL_OPTIONAL_DEPEND_PKG([evas], [${want_valgrind}],
- [VALGRIND], [valgrind >= 2.4.0])
# FontConfig
EFL_OPTIONAL_DEPEND_PKG([evas], [${want_fontconfig}],
diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index 931876e8d1..ad17bae531 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -161,7 +161,7 @@ chained_pool_module_la_CPPFLAGS = \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-DEFL_EINA_BUILD
-chained_pool_module_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@
+chained_pool_module_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@ @VALGRIND_CFLAGS@
chained_pool_module_la_SOURCES = modules/eina/mp/chained_pool/eina_chained_mempool.c
chained_pool_module_la_LIBADD = lib/eina/libeina.la @EINA_LIBS@
chained_pool_module_la_LDFLAGS = -no-undefined -module -avoid-version @EFL_PTHREAD_LIBS@
@@ -178,7 +178,7 @@ one_big_module_la_CPPFLAGS = \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-DEFL_EINA_BUILD
-one_big_module_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@
+one_big_module_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@ @VALGRIND_CFLAGS@
one_big_module_la_SOURCES = modules/eina/mp/chained_pool/eina_chained_mempool.c
one_big_module_la_LIBADD = lib/eina/libeina.la @EINA_LIBS@
one_big_module_la_LDFLAGS = -no-undefined -module -avoid-version @EFL_PTHREAD_LIBS@
@@ -195,7 +195,7 @@ pass_through_module_la_CPPFLAGS = \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-DEFL_EINA_BUILD
-pass_through_module_la_CFLAGS = @EINA_CFLAGS@
+pass_through_module_la_CFLAGS = @EINA_CFLAGS@ @VALGRIND_CFLAGS@
pass_through_module_la_SOURCES = modules/eina/mp/chained_pool/eina_chained_mempool.c
pass_through_module_la_LIBADD = lib/eina/libeina.la @EINA_LIBS@
pass_through_module_la_LDFLAGS = -no-undefined -module -avoid-version
@@ -213,6 +213,7 @@ lib_eina_libeina_la_CPPFLAGS = \
@EFL_COV_CFLAGS@ \
@EFL_PTHREAD_CFLAGS@ \
@EINA_CFLAGS@ \
+@VALGRIND_CFLAGS@ \
@USE_EVIL_CFLAGS@
lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @EFL_COV_LIBS@ @USE_EVIL_LIBS@ @DL_LIBS@ -lm
diff --git a/src/Makefile_Evas.am b/src/Makefile_Evas.am
index 37db7fb5d3..8d8441cc71 100644
--- a/src/Makefile_Evas.am
+++ b/src/Makefile_Evas.am
@@ -207,6 +207,7 @@ lib_evas_libevas_la_CPPFLAGS = \
@EFL_CFLAGS@ \
@EFL_COV_CFLAGS@ \
@EVAS_CFLAGS@ \
+@VALGRIND_CFLAGS@ \
@ALTIVEC_CFLAGS@ \
@USE_EVIL_CFLAGS@