summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-07 00:15:53 -0500
committerMike Frysinger <vapier@gentoo.org>2016-11-12 02:33:31 -0500
commit7bf04c64fd51d82d1e860e4da1fbbd5ea6e23db8 (patch)
treeadcaf6729562f193f667af0cab664ab417f586ee
parentce14df82dd4c454408ae3b2d9071457126f1be86 (diff)
downloadbinutils-gdb-7bf04c64fd51d82d1e860e4da1fbbd5ea6e23db8.tar.gz
libiberty: install PIC version of libiberty.a
This will install a PIC version of libiberty.a by overwriting the non-PIC version of libiberty.a while compiling. We do this because there is no shared version of libiberty for random apps to link against which means if someone wants to use this in a shared library or PIE, they're out of luck. It's arguable whether people should be able to use this in a shared lib, but usage in PIE should be fine. You could argue that this penalizes the non-PIE users, but the counter point is that people using this library in general are fairly low, and we'd rather have things work for all of them.
-rw-r--r--libiberty/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index c7a45680917..45c9ca25a82 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -254,6 +254,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
$(AR) $(AR_FLAGS) $(TARGETLIB) \
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
$(RANLIB) $(TARGETLIB); \
+ cp $(TARGETLIB) ../ ; \
cd ..; \
else true; fi; \
if [ x"$(NOASANFLAG)" != x ]; then \