aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-06 17:27:44 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-06 17:27:44 +0000
commit48fd00b6d8d5c26e7c17be5b937a172f883b634c (patch)
tree6665b46fa412c8c78944e8690c146f7a8f841ca3 /bfd/Makefile.in
parent263af1721b6292810f2ba1c73b226bbef706e053 (diff)
downloadgdb-48fd00b6d8d5c26e7c17be5b937a172f883b634c.zip
gdb-48fd00b6d8d5c26e7c17be5b937a172f883b634c.tar.gz
gdb-48fd00b6d8d5c26e7c17be5b937a172f883b634c.tar.bz2
* Makefile.in (program_transform_name): New variable.
(install): Transform library name before installing it.
Diffstat (limited to 'bfd/Makefile.in')
-rw-r--r--bfd/Makefile.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index b3bc750..0da4cbb 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -24,6 +24,7 @@ srcdir = @srcdir@
prefix = @prefix@
+program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
@@ -625,15 +626,17 @@ force:
install: $(ALLLIBS)
for f in $(ALLLIBS); do \
- rm -f $(libdir)/$$f; \
+ tf=lib`echo $$f | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ rm -f $(libdir)/$$tf; \
if [ "$$f" = "$(SHLINK)" ]; then \
- ln -sf $(SHLIB) $(libdir)/$$f; \
+ ts=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ ln -sf $$ts $(libdir)/$$tf; \
elif [ "$$f" = "$(SHLIB)" ]; then \
- $(INSTALL_PROGRAM) $$f $(libdir)/$$f; \
+ $(INSTALL_PROGRAM) $$f $(libdir)/$$tf; \
else \
- $(INSTALL_DATA) $$f $(libdir)/$$f; \
- $(RANLIB) $(libdir)/$$f; \
- chmod a-x $(libdir)/$$f; \
+ $(INSTALL_DATA) $$f $(libdir)/$$tf; \
+ $(RANLIB) $(libdir)/$$tf; \
+ chmod a-x $(libdir)/$$tf; \
fi; \
done
# Install BFD include file, and others that it needs. Install them