disable dynamic linking/loading code in static libc builds, for now
authorRich Felker <dalias@aerifal.cx>
Sun, 18 Sep 2011 20:42:06 +0000 (16:42 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 18 Sep 2011 20:42:06 +0000 (16:42 -0400)
it does not work, but some configure scripts will falsely detect
support then generate programs that crash when they call dlopen.

src/ldso/dynlink.c

index 57a5ba4..1b55e07 100644 (file)
@@ -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