Skip to content

Commit

Permalink
Add RTLD_DEEPBIND flag for s2 plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
GAMMACASE authored and psychonic committed Mar 7, 2024
1 parent 3740821 commit 2c2668c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/metamod_oslink.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
#include <sys/types.h>
#include <dirent.h>
typedef void* HINSTANCE;
#ifdef META_IS_SOURCE2
#define dlmount(x) dlopen(x,RTLD_NOW | RTLD_DEEPBIND)
#else
#define dlmount(x) dlopen(x,RTLD_NOW)
#endif
#define abspath(x, s) realpath(s, x)
#define PATH_SEP_STR "/"
#define PATH_SEP_CHAR '/'
Expand Down

0 comments on commit 2c2668c

Please sign in to comment.