make dynamic linker depend on -DSHARED not -fPIC
authorRich Felker <dalias@aerifal.cx>
Wed, 11 Jul 2012 05:47:30 +0000 (01:47 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 11 Jul 2012 05:47:30 +0000 (01:47 -0400)
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.

src/ldso/dynlink.c

index 0a64ef8..76f416c 100644 (file)
@@ -20,7 +20,7 @@
 static int errflag;
 static char errbuf[128];
 
-#ifdef __PIC__
+#ifdef SHARED
 
 #include "reloc.h"