From: Fredrik Fornwall Date: Sat, 23 Apr 2016 21:50:20 +0000 (-0400) Subject: Update README section about dlfcn.h X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/29db5b35428642183f4beb9578709aa0cdd6d38d Update README section about dlfcn.h --- diff --git a/README.md b/README.md index a750b173..971d589c 100644 --- a/README.md +++ b/README.md @@ -125,16 +125,17 @@ contains these and may be used by all packages. dlopen() and RTLD_* flags ================================= -<dlfcn.h> declares +<dlfcn.h> originally declares enum { RTLD_NOW=0, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=2, RTLD_NOLOAD=4}; // 32-bit enum { RTLD_NOW=2, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=0x00100, RTLD_NOLOAD=4}; // 64-bit These differs from glibc ones in that -1. They are not preprocessor #define:s so cannot be checked for with #ifdef RTLD_GLOBAL (dln.c in ruby does this) +1. They are not preprocessor #define:s so cannot be checked for with `#ifdef RTLD_GLOBAL`. Termux patches this to + #define values for compatibility with several packages. 2. They differ in value from glibc ones, so cannot be hardcoded in files (DLFCN.py in python does this) -3. They are missing some values (RTLD_BINDING_MASK, RTLD_NOLOAD, ...) +3. They are missing some values (`RTLD_BINDING_MASK`, `RTLD_NOLOAD`, ...) RPATH, LD_LIBRARY_PATH AND RUNPATH