From e864a29090459c98d106f6f74a16b3558e18fdca Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 11 Jul 2012 01:47:30 -0400 Subject: [PATCH] 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. --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 0a64ef8a..76f416c1 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -20,7 +20,7 @@ static int errflag; static char errbuf[128]; -#ifdef __PIC__ +#ifdef SHARED #include "reloc.h" -- 2.20.1