From 4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Sep 2011 16:42:06 -0400 Subject: [PATCH] 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. --- src/ldso/dynlink.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1