浏览代码

make dynamic linker depend on -DSHARED not -fPIC

if libc.a is compiled PIC for use in static PIE code, this should not
cause the dynamic linker (which still does not support static-linked
main program) to be built into libc.a.
Rich Felker 12 年之前
父节点
当前提交
e864a29090
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ldso/dynlink.c

+ 1 - 1
src/ldso/dynlink.c

@@ -20,7 +20,7 @@
 static int errflag;
 static char errbuf[128];
 
-#ifdef __PIC__
+#ifdef SHARED
 
 #include "reloc.h"