Fix build when shared libraries are disabled
On some platforms, shared libraries are not used. The stub code need some updating to not generate errors.
This commit is contained in:
parent
263c894fd1
commit
e7b24b67db
|
|
@ -1,4 +1,12 @@
|
||||||
|
/*
|
||||||
|
* This file creates a dummy version of dynamic loading
|
||||||
|
* for environments where dynamic linking
|
||||||
|
* is not used or available.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "dlfcn.h"
|
||||||
|
|
||||||
void *_dlsym(const char *sym)
|
void *_dlsym(const char *sym)
|
||||||
{
|
{
|
||||||
#include "static-syms.h"
|
#include "static-syms.h"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define RTLD_LAZY 0
|
#define RTLD_LAZY 0
|
||||||
|
#define RTLD_GLOBAL 1
|
||||||
#define _FAKE_DLFCN_HDL (void *)0xbeefcafe
|
#define _FAKE_DLFCN_HDL (void *)0xbeefcafe
|
||||||
|
|
||||||
static inline void *dlopen(const char *file, int flag)
|
static inline void *dlopen(const char *file, int flag)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
|
/*
|
||||||
|
* This file creates a dummy version of dynamic loading
|
||||||
|
* for environments where dynamic linking
|
||||||
|
* is not used or available.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "dlfcn.h"
|
||||||
|
|
||||||
void *_dlsym(const char *sym)
|
void *_dlsym(const char *sym)
|
||||||
{
|
{
|
||||||
#include "static-syms.h"
|
#include "static-syms.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
|
/*
|
||||||
|
* This file creates a dummy version of dynamic loading
|
||||||
|
* for environments where dynamic linking
|
||||||
|
* is not used or available.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "dlfcn.h"
|
||||||
|
|
||||||
void *_dlsym(const char *sym)
|
void *_dlsym(const char *sym)
|
||||||
{
|
{
|
||||||
#include "static-syms.h"
|
#include "static-syms.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue