From: Rich Felker Date: Sun, 18 Sep 2011 20:42:06 +0000 (-0400) Subject: disable dynamic linking/loading code in static libc builds, for now X-Git-Tag: v0.8.3~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c;p=oweals%2Fmusl.git 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. --- 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 #include #include @@ -681,3 +682,4 @@ int dlclose(void *p) { return 0; } +#endif