From: Simon McVittie Date: Fri, 17 May 2013 23:42:19 +0000 (+0100) Subject: Disable dlopen support, and warn if it gets compiled in X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a44dbb3a42141b9a085494d1e21f7f40ac8a5672;p=xonotic%2Fdarkplaces.git Disable dlopen support, and warn if it gets compiled in Forwarded: no, Debian-specific --- diff --git a/sys.h b/sys.h index 862bdf7c..7da82e3c 100644 --- a/sys.h +++ b/sys.h @@ -50,7 +50,7 @@ dllfunction_t; * \param handle * \param fcts */ -qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts); +qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts) __attribute__ ((__warning__ ("in Debian, please link shared libraries at build time"))); void Sys_UnloadLibrary (dllhandle_t* handle); void* Sys_GetProcAddress (dllhandle_t handle, const char* name); diff --git a/sys_shared.c b/sys_shared.c index 10f5a60e..b55b29c9 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -6,7 +6,9 @@ #include "quakedef.h" -#define SUPPORTDLL +/* Debian-specific: no dynamic loading please, it breaks versioned dependency + * tracking */ +#undef SUPPORTDLL #ifdef WIN32 # include