浏览代码

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.
Rich Felker 13 年之前
父节点
当前提交
4f4bf0ad2e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/ldso/dynlink.c

+ 2 - 0
src/ldso/dynlink.c

@@ -1,3 +1,4 @@
+#ifdef __PIC__
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
@@ -681,3 +682,4 @@ int dlclose(void *p)
 {
 {
 	return 0;
 	return 0;
 }
 }
+#endif