From: Rich Felker Date: Wed, 11 Jul 2012 05:47:30 +0000 (-0400) Subject: make dynamic linker depend on -DSHARED not -fPIC X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=e864a29090459c98d106f6f74a16b3558e18fdca;ds=sidebyside 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. --- 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"