]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable dlopen support, and warn if it gets compiled in
authorSimon McVittie <smcv@debian.org>
Fri, 17 May 2013 23:42:19 +0000 (00:42 +0100)
committernyov <nyov@nexnode.net>
Thu, 27 Nov 2014 10:47:27 +0000 (10:47 +0000)
Forwarded: no, Debian-specific

sys.h
sys_shared.c

diff --git a/sys.h b/sys.h
index 862bdf7c1675fd0fc18d53e53cd2ba62e27f9685..7da82e3c0e1f42c1a9c439d98c1ce65016b0ffa6 100644 (file)
--- 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);
 
index 10f5a60e5d7126a145188698246ddeb23479840c..b55b29c991c0bb988103ec7ecda69fce79355831 100644 (file)
@@ -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 <windows.h>