summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-11 01:47:30 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-11 01:47:30 -0400
commite864a29090459c98d106f6f74a16b3558e18fdca (patch)
treea32abe28de1b19a60893c3ad2d2a493cb79a3ece /src
parent0420b874465db7544a9e1f320969b4920c9405d8 (diff)
downloadmusl-e864a29090459c98d106f6f74a16b3558e18fdca.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
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"