diff options
| author | Rich Felker <dalias@aerifal.cx> | 2011-09-18 16:42:06 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2011-09-18 16:42:06 -0400 | 
| commit | 4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c (patch) | |
| tree | 571d18fe6824100db43212525308bae3629d0dfa | |
| parent | b0c088ee550634e07a6289a8ac98cb8009f81c66 (diff) | |
| download | musl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.tar.gz | |
disable dynamic linking/loading code in static libc builds, for now
it does not work, but some configure scripts will falsely detect
support then generate programs that crash when they call dlopen.
| -rw-r--r-- | src/ldso/dynlink.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 57a5ba46..1b55e077 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1,3 +1,4 @@ +#ifdef __PIC__  #include <stdio.h>  #include <stdlib.h>  #include <string.h> @@ -681,3 +682,4 @@ int dlclose(void *p)  {  	return 0;  } +#endif  | 
