mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 07:16:36 +00:00
Merge pull request #926 from mprobinson/valgrind-support-renamed
Add --enable-preserve_dylib configure option
This commit is contained in:
commit
1566822396
4
Makefile
4
Makefile
@ -490,6 +490,10 @@ ifeq ($(HAVE_7ZIP),1)
|
||||
JOYCONFIG_OBJ += $(7ZOBJ)
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_PRESERVE_DYLIB),1)
|
||||
DEFINES += -DNO_DLCLOSE
|
||||
endif
|
||||
|
||||
ifneq ($(V),1)
|
||||
Q := @
|
||||
endif
|
||||
|
@ -451,8 +451,10 @@ void dylib_close(dylib_t lib)
|
||||
#ifdef _WIN32
|
||||
FreeLibrary((HMODULE)lib);
|
||||
#else
|
||||
#ifndef NO_DLCLOSE
|
||||
dlclose(lib);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -52,6 +52,11 @@ if [ "$HAVE_7ZIP" = "yes" ]; then
|
||||
add_include_dirs ./decompress/7zip/
|
||||
fi
|
||||
|
||||
if [ "$HAVE_PRESERVE_DYLIB" = "yes" ]; then
|
||||
echo "Disabling dlclose() of shared objects for Valgrind support."
|
||||
add_define_make HAVE_PRESERVE_DYLIB "1"
|
||||
fi
|
||||
|
||||
if [ "$HAVE_FLOATHARD" = "yes" ]; then
|
||||
CFLAGS="$CFLAGS -mfloat-abi=hard"
|
||||
CXXFLAGS="$CXXFLAGS -mfloat-abi=hard"
|
||||
|
@ -45,3 +45,4 @@ HAVE_SSE=no # Forcefully enable x86 SSE optimizations (SSE, SSE2)
|
||||
HAVE_FLOATHARD=no # Force hard float ABI (for ARM)
|
||||
HAVE_FLOATSOFTFP=no # Force soft float ABI (for ARM)
|
||||
HAVE_7ZIP=yes # Compile in 7z support
|
||||
HAVE_PRESERVE_DYLIB=no # Disable dlclose() for Valgrind support
|
||||
|
Loading…
Reference in New Issue
Block a user