summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-18 16:42:06 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-18 16:42:06 -0400
commit4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c (patch)
tree571d18fe6824100db43212525308bae3629d0dfa /src/ldso/dynlink.c
parentb0c088ee550634e07a6289a8ac98cb8009f81c66 (diff)
downloadmusl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.tar.gz
musl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.tar.bz2
musl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.tar.xz
musl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.zip
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.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
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