forked from enlightenment/efl
efl: fix valgrind build.
weird enough to build with memcheck.h you just need valgrind's CFLAGS, not its libraries as they are not supposed to be used like that, throwing many bgPlain_ errors (vgPlain_tl_pre_clo_init, vgPlain_free...) from libcoregrind-x86-linux.a SVN revision: 81901
This commit is contained in:
parent
b316f6a1a9
commit
8ce53b64da
13
configure.ac
13
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}],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -207,6 +207,7 @@ lib_evas_libevas_la_CPPFLAGS = \
|
|||
@EFL_CFLAGS@ \
|
||||
@EFL_COV_CFLAGS@ \
|
||||
@EVAS_CFLAGS@ \
|
||||
@VALGRIND_CFLAGS@ \
|
||||
@ALTIVEC_CFLAGS@ \
|
||||
@USE_EVIL_CFLAGS@
|
||||
|
||||
|
|
Loading…
Reference in New Issue